Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- send :: Socket -> ByteString -> IO (Either Errno ())
- sendInterruptible :: TVar Bool -> Socket -> ByteString -> IO (Either Errno ())
- receive :: Socket -> Int -> IO (Either Errno ByteString)
- receiveExactly :: Socket -> Int -> IO (Either Errno ByteString)
- receiveExactlyInterruptible :: TVar Bool -> Socket -> Int -> IO (Either Errno ByteString)
Documentation
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.
sendInterruptible :: TVar Bool -> 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.
If this returns zero bytes, it means that the peer has performed an orderly shutdown.