recv socket, $var, len, flags
Receives a message on a socket.
It attempts to receive len
bytes of data into variable var from
the specified socket filehandle. The function returns the address of
the sender, or the undefined value if there's an error. var will grow
or shrink to the length actually read. The function takes
the same flags as the recv(2)
system call.
Copyright © 2001 O'Reilly & Associates. All rights reserved.