Network.Unexceptional.ByteString
send :: Socket -> ByteString -> IO (Either Errno ()) Source #
Send the entire byte sequence. This call POSIX send in a loop until all of the bytes have been sent.
send
receive Source #
Arguments
Maximum number of bytes to receive
If this returns zero bytes, it means that the peer has performed an orderly shutdown.