Std socket socketstream read
std:std.socket.SocketStream.Read
Method Read:Int( buf:Void Ptr,count:Int )#
Method Read:Int( data:DataBuffer,offset:Int,count:Int )#
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. |