Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- receive :: Socket -> MutableBytes RealWorld -> IO (Either Errno Int)
- receiveInterruptible :: TVar Bool -> Socket -> MutableBytes RealWorld -> IO (Either Errno Int)
- receiveExactly :: Socket -> MutableBytes RealWorld -> IO (Either Errno ())
- receiveExactlyInterruptible :: TVar Bool -> Socket -> MutableBytes RealWorld -> IO (Either Errno ())
Documentation
Receive bytes from a socket. Receives at most N bytes, where N is the size of the buffer. Returns the number of bytes that were actually received.