in reply to Re: Re: IO:Socket::INET - how to receive binary data
in thread IO:Socket::INET - how to receive binary data
I prefer to use read over sysread and recv because it works with buffered I/O operations while the other two don't. Though if you are using UDP in certain ways, then you might want to use recv so you can get the source address for each packet. In rare cases, the "flags" argument to recv can also come in handy so that you can MSG_PEEK at the data without reading it or check for out-of-band data.
- tye (but my friends call me "Tye")
|
|---|