Network.Socket

Initialisation

withSocketsDo

Address information

getAddrInfo

Types

type HostName

type ServiceName

data AddrInfo

defaultHints

Flags

data AddrInfoFlag

addrInfoFlagImplemented

Socket operations

connect

bind

listen

accept

Closing

close

close'

shutdown

data ShutdownCmd

Socket options

data SocketOption

isSupportedSocketOption

getSocketOption

setSocketOption

Socket

data Socket

socket

fdSocket

mkSocket

socketToHandle

Types of Socket

data SocketType

isSupportedSocketType

Family

data Family

isSupportedFamily

Protocol number

type ProtocolNumber

defaultProtocol

Socket address

data SockAddr

isSupportedSockAddr

getPeerName

getSocketName

Host address

type HostAddress

hostAddressToTuple

tupleToHostAddress

Host address6

type HostAddress6

hostAddress6ToTuple

tupleToHostAddress6

Flow Info

type FlowInfo

Scope ID

type ScopeID

ifNameToIndex

ifIndexToName

Port number

data PortNumber

defaultPort

socketPortSafe

socketPort

UNIX-domain socket

isUnixDomainSocketAvailable

socketPair

sendFd

recvFd

getPeerCredential

Name information

data NameInfoFlag

getNameInfo

Low level operations

setCloseOnExecIfNeeded

getCloseOnExec

setNonBlockIfNeeded

getNonBlock

Sending and receiving data

sendBuf

recvBuf

sendBufTo

recvBufFrom

Special constants

maxListenQueue

Deprecated

Deprecated sending and receiving

send

sendTo

recv

recvFrom

recvLen

Deprecated address functions

inet_addr

inet_ntoa

Deprecated socket operations

bindSocket

sClose

Deprecated socket status

data SocketStatus

isConnected

isBound

isListening

isReadable

isWritable

sIsConnected

sIsBound

sIsListening

sIsReadable

sIsWritable

Deprecated special constants

aNY_PORT

iNADDR_ANY

iN6ADDR_ANY

sOMAXCONN

sOL_SOCKET

sCM_RIGHTS

Decrecated internal functions

packFamily

unpackFamily

packSocketType

Decrecated UNIX-domain functions

getPeerCred