in reply to Re^2: Bidirectional use of a Socket
in thread Bidirectional use of a Socket
One obvious problem is that accept. You don't need to accept, as the connection (between client and server) has been created already, at the time when you call ->new().
On the client side, the porgram above, you can use $t_socket for both write and read, to "listen for response", all what you need to do is <$t_socket>. Of course , for better control, you can always use select, which is something you want to learn next step.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Bidirectional use of a Socket
by scotchfx (Sexton) on Jul 04, 2005 at 02:43 UTC | |
by pg (Canon) on Jul 04, 2005 at 05:52 UTC | |
|
Re^4: Bidirectional use of a Socket
by scotchfx (Sexton) on Jul 04, 2005 at 02:59 UTC | |
by scotchfx (Sexton) on Jul 04, 2005 at 03:04 UTC |