packages feed

sockets-0.4.0.0: src-stream-receive/Stream/Receive.hsig

signature Stream.Receive where

import Socket.Buffer (Buffer)

import Foreign.C.Error (Errno)
import Foreign.C.Types (CSize)
import Prelude (Either,IO)
import System.Posix.Types (Fd)

-- Make a single POSIX @recv@ call with the unsafe FFI.
receiveOnce :: Fd -> Buffer -> IO (Either Errno CSize)