Previous Topic: ACCEPTNext Topic: Notes


Parameters

Parameter

Description

socket-descriptor

Specifies the name of a fullword field containing the socket descriptor that was used on the BIND and LISTEN functions.

sockaddr

Specifies the name of an area in which to return the sockaddr structure of the connecting client. The format of that structure depends on the domain of the corresponding socket. This parameter can be assigned to NULL if the caller is not interested in the connector's address.

sockaddr-length

Specifies the name of a fullword field containing the length of sockaddr. If SOCKADDR is assigned to NULL, sockaddr-length must be 0. On return, sockaddr-length contains the size required to represent the connecting socket. If the value is 0, the contents of sockaddr are unchanged. If the sockaddr is too small to contain the full sockaddr structure, it is truncated. The maximum value for this parameter is 4096.

new-socket-descriptor

Specifies the name of a fullword field where the socket descriptor of the new connection is returned.