[Overview][Constants][Types][Procedures and functions][Variables] Reference for unit 'Sockets' (#rtl)

Reference for unit 'Sockets': Procedures and functions

Accept

  

Accept a connection from a socket.

Bind

  

Bind a socket to an address.

CloseSocket

  

Closes a socket handle.

Connect

  

Open a connection to a server socket.

fpaccept

  

Alias for the acceptcall

fpbind

  

Alias for the bindcall

fpconnect

  

Alias for the connectcall

fpgetpeername

  

Alias for the GetPeerNamecall

fpgetsockname

  

Alias for the GetSocketNamecall

fpgetsockopt

  

Alias for the GetSocketOptionscall

fplisten

  

Alias for the listencall

fprecv

  

Alias for the recvcall

fprecvfrom

  

Alias for the recvfromcall

fpsend

  

Alias for the sendcall

fpsendto

  

Alias for the sendcall

fpsetsockopt

  

Alias for the SetSocketOptionscall

fpshutdown

  

Alias for the shutdowncall

fpsocket

  

Alias for the socketcall

fpsocketpair

  

Alias for the SocketPaircall

GetPeerName

  

Return the name (address) of the connected peer.

GetSocketName

  

Return name of socket.

GetSocketOptions

  

Get current socket options

HostAddrToStr

  

Convert a host address to a string.

HostAddrToStr6

  

Convert a IPV6 host address to a string representation.

HostToNet

  

Convert a host address to a network address

htonl

  

Convert long integer from host ordered to network ordered

htons

  

Convert short integer from host ordered to network ordered

Listen

  

Listen for connections on socket.

NetAddrToStr

  

Convert a network address to a string.

NetAddrToStr6

  

Convert a IPV6 network address to a string.

NetToHost

  

Convert a network address to a host address.

NToHl

  

Convert long integer from network ordered to host ordered

NToHs

  

Convert short integer from network ordered to host ordered

Recv

  

Receive data on socket

RecvFrom

  

Receive data from an unconnected socket

Send

  

Send data through socket

SendTo

  

Send data through an unconnected socket to an address.

SetSocketOptions

  

Set socket options.

ShortHostToNet

  

Convert a host port number to a network port number

ShortNetToHost

  

Convert a network port number to a host port number

Shutdown

  

Close one end of full duplex connection.

Sock2File

  

Convert socket to untyped file descriptors

Sock2Text

  

Convert socket to text file descriptors

Socket

  

Create new socket

SocketPair

  

Create socket pair

Str2UnixSockAddr

  

Convert path to TUnixSockAddr

StrToHostAddr

  

Convert a string to a host address.

StrToHostAddr6

  

Convert a string to a IPV6 host address.

StrToNetAddr

  

Convert a string to a network address.

StrToNetAddr6

  

Convert a string to a IPV6 network address