network-unexceptional-0.2.1.1: Network functions that do not throw exceptions
Safe HaskellSafe-Inferred
LanguageHaskell2010

Network.Unexceptional.ByteArray

Synopsis

Documentation

receiveExactly Source #

Arguments

:: Socket 
-> Int

Exact number of bytes to receive, must be greater than zero

-> IO (Either Errno ByteArray) 

Blocks until an exact number of bytes has been received.

receiveFromInterruptible Source #

Arguments

:: TVar Bool 
-> Socket 
-> Int

Maximum number of bytes to receive.

-> IO (Either Errno (ByteArray, SockAddr))