<$handle> is a readline function, it's reading one line from the file handle. Your packet contains two lines, that's why it's returned as two parts. You can use read function to get all data, but note that TCP is stream oriented protocol so you shouldn't assume that all data will be transmitted in one packet, or that one packet would contain only one chunk of data of your application layer protocol.
In reply to Re: Network socket noob, why is my socket read not getting all the data from a packet?
by zwon
in thread Network socket noob, why is my socket read not getting all the data from a packet?
by zen0n
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |