haskus-system-0.6.0.0: Haskus system programming framework

Safe HaskellNone
LanguageHaskell2010

Haskus.Arch.Linux.Network.SendReceive

Synopsis

Documentation

data SendReceiveFlag Source #

Constructors

FlagOutOfBand

Process out-of-band data

FlagPeek

Peek at incoming messages

FlagDontRoute

Don't use local routing

FlagTruncateControl

Control data lost before delivery

FlagProxy

Supply or ask second address

FlagTruncate 
FlagDontWait

Nonblocking IO

FlagEndOfRecord

End of record

FlagWaitAll

Wait for a full request

FlagFIN 
FlagSYN 
FlagConfirm

Confirm path validity

FlagRST 
FlagFetchErrorQueue

Fetch message from error queue

FlagNoSignal

Do not generate SIGPIPE

FlagMore

Sender will send more

FlagWaitForOne

Wait for at least one packet to return

FlagFastOpen

Send data in TCP SYN

FlagCloseOnExec

Set close_on_exit for file descriptor received through SCM_RIGHTS

sysReceive :: (MonadInIO m, Storable a) => Handle -> Ptr () -> Word64 -> SendReceiveFlags -> Maybe a -> Flow m '[Word64, ErrorCode] Source #

Receive data from a socket

recvfrom syscall