Group Sockets / TCP / UDP
SocketAccept()
Waits until a connection is present.
SocketAccept( <nServerSocket>, [@<nError>] ) --> nSocket
SocketBind()
Associates a local address with a socket.
SocketBind( <nSocket>, [<nAddressFamily>], <xLocalAddress, <nPort>, [@<nError>] ) --> lSuccess
SocketCatMark()
Determines whether or not all out-of-band data is read.
SocketCatMark( <nSocket> ) --> lYesNo
SocketClose()
Closes an open socket.
SocketClose( <nSocket>, [@<nError>] ) --> lSuccess
SocketConnect()
Connects a socket to a peer.
SocketConnect( <nSocket>, [<nAddressFamily>], <xRemoteAddress>, <nPort>, [@<nError>] ) --> lSuccess
SocketCount()
Determines the amount of data that can be read from a socket.
SocketCount( <nSocket> ) --> nBytesAvailable
SocketCreate()
Creates a new socket and binds it to a given port.
SocketCreate( [<nSocketType>], <nPort>, [<cLocalAddress>], [<lReuseAddress>], [@<nError>] ) --> nSocket
SocketFD_CLR()
Removes a socket descriptor from a set of descriptors.
SocketFD_CLR( <nSocket>, <nFDSet> ) --> lSuccess
SocketFD_ISSET()
Checks if a socket belongs to a descriptor set.
SocketFD_ISSET( <nSocket>, <nFDSet> ) --> lISSET
SocketFD_SET()
Adds a socket descriptor to a set of descriptors.
SocketFD_SET( <nSocket>, <nFDSet> ) --> lSuccess
SocketFD_ZERO()
Resets an existing descriptor set to its initial state.
SocketFD_ZERO( <nFDSet>, [@<nError>] ) --> lSuccess
SocketFDSetDelete()
Deletes a set of socket descriptors.
SocketFDSetDelete( <nFDSet> ) --> lSuccess
SocketFDSetNew()
Creates a new descriptor set for sockets.
SocketFDSetNew( [@<nError>] ) --> nFDSet
SocketGetHostByAddr()
Retrieves host information using an IP address.
SocketGetHostByAddr( <cIPAddr>|<nIPAddr>, [@<nError>] ) --> aHostInfo|NIL
SocketGetHostByName()
Retrieves host information from a host name.
SocketGetHostByName( <cHostName>, [@<nError>] ) --> aHostInfo|NIL
SocketGetHostName()
Retrieves the default host name for the local computer.
SocketGetHostName( [@<nError>] ) --> cHostName
SocketGetLastError()
Retrieves the error code for the last operation that failed.
SocketGetLastError() --> nErrorCode
SocketGetMessage()
Retrieves a message from a socket.
SocketGetMessage( <nSocket>, @<nCommand>, @<cMessage> ) --> lSuccess
SocketGetOption()
Retrieves a socket option.
SocketGetOption( <nSocket>, <nOption>, @<xValue> ) --> lSuccess
SocketGetPeerName()
Retrieves peer information connected to the socket.
SocketGetPeerName( <nSocket>, [@<nError>] ) --> aInetAddr|NIL
SocketGetProtoByName()
Retrieves protocol information from a protocol name.
SocketGetProtoByName( <cProtocolName>, [@<nError>] ) --> aProtocolInfo|NIL
SocketGetProtoByNumber()
Retrieves protocol information from a protocol number.
SocketGetProtoByNumber( <nProtocolNumber>, [@<nError>] ) --> aProtocolInfo|NIL
SocketGetServByName()
Retrieves internet service information from a service name and protocol.
SocketGetServByName( <cServiceName>, [<cProtocolName>] ) --> aServiceInfo|NIL
SocketGetServByPort()
Retrieves service information from a port number and protocol.
SocketGetServByPort( <nPort>, [<cProtocolName>] ) --> aServiceInfo|NIL
SocketGetSockName()
Returns the current name of the specified socket.
SocketGetSockName( <nSocket>, [@<nError>] ) --> aInetAddr|NIL
SocketHtoN()
Converts a numeric value from host byte order to TCP/IP network byte order.
SocketHtoN( <nHostValue> ) --> nNetworkValue
SocketInetAddr()
Converts an internet address formatted as dotted octet string to a numeric IP address.
SocketInetAddr( <cIPAddress> ) --> nIPAddress
SocketInetNtoA()
Converts a numeric internet address in network byte order to a dotted octet string.
SocketInetNtoA( <nIPAddr> ) --> cIPAddr|NIL
SocketListen()
Establishes a socket to listen for an incoming connection.
SocketListen( <nServerSocket>, [<nBackLog>], [@<nError>] ) --> lSuccess
SocketNew()
Creates a new, unbound socket.
SocketNew( [<nAddressFamily>], [<nSocketType>], [<nProtocol>], [@<nError>] ) --> nSocket
SocketNToH()
Converts a numeric value from TCP/IP network order to host byte order.
SocketNToH( <nNetworkValue> ) --> nHostValue
SocketOpen()
Creates a bound socket and connects it to a remote process.
SocketOpen( [<nSocketType>], <cRemoteAddress>, <nPort>, [@<nError>] ) --> nSocket
SocketPutMessage()
Sends a message to a remote socket.
SocketPutMessage( <nSocket>, <nCommand>, [<cMessage>] ) --> lSuccess
SocketRecv()
Receives data from a connected socket.
SocketRecv( <nSocket>, @<cBuffer>, [<nLength>], [<nFlag>], [@<nError>] ) --> nBytesRead
SocketRecvFrom()
Receives a datagram and stores the sender's address.
SocketRecvFrom( <nSocket>, @<cBuffer>, [<nLength>], [<nFlag>], [@<aFromAddr>], [@<nError>] ) --> nBytesWritten
SocketRecvStr()
Reads data from a connected socket.
SocketRecvStr( <nSocket>, <nLength>, [@<nError>] ) --> cData
SocketSelect()
Determines the status of one or more sockets and waits, if necessary.
SocketSelect( [<nReadFD>], [<nWriteFD>], [<nExceptFD>], [<aTimeOut>], [@<nError>] ) --> nNumberOfSockets
SocketSend()
Sends data to a connected socket.
SocketSend( <nSocket>, <cBuffer>, [<nLength>], [<nFlag>], [@<nError>] ) --> nBytesWritten
SocketSendTo()
Sends data to a specific destination.
SocketSendTo( <nSocket>, <cBuffer>, [<nLength>], [<nFlag>], [<aToAddr>], [@<nError>] ) --> nBytesWritten
SocketSetBlockingMode()
Enables or disables the blocking mode.
SocketSetBlockingMode( <nSocket>, <lOnOff> ) --> lSuccess
SocketSetOption()
Sets a socket option.
SocketSetOption( <nSocket>, <nOption>, <xValue> ) --> lSuccess
SocketShutdown()
Disables data transfer on a socket.
SocketShutdown( <nSocket>, <nHow>, [@<nError>] ) --> lSuccess