Reads a memblock from the specified socket. If the memblock already exists, it will be removed and a new one created of the correct size.
UDP
The command will read an entire datagram into a memblock, creating the memblock or replacing it as necessary. If a zero-sized datagram is received, then a memblock will not be created. (NOTE: You can send a zero-sized datagram by either using the low-level SEND SOCKET( ) or SEND TO SOCKET( ) functions, or by transmitting an empty string with the SEND SOCKET STRING( ) function)
Returns the number of bytes recieved, or -1 if an error occurred. |