Safe Haskell | None |
---|---|
Language | Haskell2010 |
Network.Mux.Bearer.Socket
Documentation
Arguments
:: SDUSize | |
-> Int | |
-> Maybe (ReadBuffer IO) | |
-> DiffTime | SDU timeout |
-> DiffTime | egress poll interval |
-> Socket | |
-> Bearer IO |
Create
from a socket.MuxBearer
On Windows Async
operations are used to read and write from
a socket. This means that the socket must be associated with the I/O
completion port with
associateWithIOCompletionPort
.
Note: IOException
s thrown by sendAll
and recv
are wrapped in
MuxError
.