Socket
Provides the ability to read/write from a TCP socket in the effect
F
.- Companion
- object
Value members
Methods
Reads up to
maxBytes
from the peer.Returns
None
if the "end of stream" is reached, indicating there will be no more bytes sent.Reads exactly
numBytes
from the peer in a single chunk.Returns a chunk with size <
numBytes
upon reaching the end of the stream.Indicates that this channel will not read more data. Causes
End-Of-Stream
be signalled to available
.