System.Socket

Socket

data Socket f t p

Family

class Family f

Type

class Type t

Protocol

class Protocol p

Operations

socket

socket

connect

connect

bind

bind

listen

listen

accept

accept

send, sendTo

send

sendTo

receive, receiveFrom

receive

receiveFrom

close

close

Options

class SocketOption o

Error

data Error

ReuseAddress

data ReuseAddress

KeepAlive

data KeepAlive

Name Resolution

getAddressInfo

data AddressInfo f t p

class HasAddressInfo f

getNameInfo

data NameInfo

class HasNameInfo f

Flags

MessageFlags

data MessageFlags

msgEndOfRecord

msgNoSignal

msgOutOfBand

msgWaitAll

AddressInfoFlags

data AddressInfoFlags

aiAddressConfig

aiAll

aiCanonicalName

aiNumericHost

aiNumericService

aiPassive

aiV4Mapped

NameInfoFlags

data NameInfoFlags

niNameRequired

niDatagram

niNoFullyQualifiedDomainName

niNumericHost

niNumericService

Exceptions

SocketException

data SocketException

eOk

eInterrupted

eBadFileDescriptor

eInvalid

ePipe

eWouldBlock

eAgain

eNotSocket

eDestinationAddressRequired

eMessageSize

eProtocolType

eNoProtocolOption

eProtocolNotSupported

eSocketTypeNotSupported

eOperationNotSupported

eProtocolFamilyNotSupported

eAddressFamilyNotSupported

eAddressInUse

eAddressNotAvailable

eNetworkDown

eNetworkUnreachable

eNetworkReset

eConnectionAborted

eConnectionReset

eNoBufferSpace

eIsConnected

eNotConnected

eShutdown

eTooManyReferences

eTimedOut

eConnectionRefused

eHostDown

eHostUnreachable

eAlready

eInProgress

AddressInfoException

data AddressInfoException

eaiAgain

eaiBadFlags

eaiFail

eaiFamily

eaiMemory

eaiNoName

eaiSocketType

eaiService

eaiSystem