socket.recv
The method gets a packet from the connected server.
method uint socket.recv (
buf data
)
buf data
)
Parameters
data | The buffer for writing data. The received packet will be added to the data already existing in the buffer. |
Return value
If the function succeeds, the return value is 1. If the function fails, the return value is 0.
Related links | Source |