System.Socket

Name Resolution

data AddressInfo f t p

getAddressInfo

class GetAddressInfo f

getNameInfo

class GetNameInfo f

Operations

socket

socket

connect

connect

bind

bind

listen

listen

accept

accept

send, sendTo

send

sendTo

receive, receiveFrom

receive

receiveFrom

close

close

Convenience Operations

withConnectedSocket

withConnectedSocket

sendAll

sendAll

receiveAll

receiveAll

Sockets

data Socket f t p

Families

class Family f

Inet

data Inet

Inet6

data Inet6

Types

class Type t

Datagram

data Datagram

Raw

data Raw

SequentialPacket

data SequentialPacket

Stream

data Stream

Protocols

class Protocol p

UDP

data UDP

TCP

data TCP

Exceptions

SocketException

data SocketException

eOk

eInterrupted

eAgain

eWouldBlock

eBadFileDescriptor

eInProgress

eProtocolNotSupported

eInvalid

eConnectionRefused

eNetworkUnreachable

eNotConnected

eAlready

eIsConnected

eTimedOut

ePipe

AddressInfoException

data AddressInfoException

eaiAgain

eaiBadFlags

eaiFail

eaiFamily

eaiMemory

eaiNoName

eaiSocketType

eaiService

eaiSystem

Socket Options

getSocketOption

class GetSocketOption o

setSocketOption

class SetSocketOption o

data Error

data ReuseAddress

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