Socket Programmingby Gorby (Monk)
|on Jan 07, 2004 at 04:42 UTC||Need Help??|
Gorby has asked for the
wisdom of the Perl Monks concerning the following question:
Hello Wise Monks. Happy New Year!
I'm trying to make a program using tcp/ip sockets and I have some questions:
1) What is a packet? When my program reads from the socket, does it read only one packet?
2) If the perl application on the other end sends the words "hello" and "there" separately by using 2 separate print statements, will my progam receive both words at once ("hello there") when it reads the socket?
Thanks in advance for any wisdom you can provide.