std:std.socket.SocketStream.Read
Reads data from the socket stream.
Reads at most count
bytes from the socket.
Returns 0 if the socket has been closed by the peer.
Can return less than count
, in which case you may have to read again if you know there's more data coming.
Parameters | |
---|---|
buf |
buf The memory buffer to read data into. |
count |
count The number of bytes to read from the socket stream. |