Orchid Fairy (À¼»¨ÏÉ×Ó) wrote:
Hello,
Hello,
After making a connected socket to a tcp server, how to implement the read/write more than once? for example: 1) make socket connection 2) write a command to socket 3) read the result from remote server 4) write another command to socket 5) read the corresponding result again 6) write... 7) read... 8) socket close.
See the "Sockets: Client/Server Communication" section of the perlipc.pod document:
perldoc perlipc John -- The programmer is fighting against the two most destructive forces in the universe: entropy and human stupidity. -- Damian Conway -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/