int accept(int s, struct sockaddr *addr, socklen_t *addrlen);
The parameter s is a socket that has been created with
You can select a socket for the purpose of an
Specifies the descriptor of the socket that is waiting for a connection after a listen.
This is a result parameter that is filled in with the address of the connecting entity (as known to the communications layer). The domain in which the communication is occurring determines the exact format of addr. If addr is NULL, no information about the remote address of the accepted socket is returned.
This is a value-result parameter. Initially, addrlen contains the amount of space that addr points to. When returned, it contains the actual length (in bytes) of the address returned. If addrlen is NULL, no information about the remote address of the accepted socket is returned.
s is not a valid descriptor.
addr or addrlen is an invalid pointer, or addrlen is too small (less than the size of a struct sockaddr).
A signal interrupted the call.
listen()was not invoked prior to accept().
Cannot open a file: OPEN_MAX file descriptors are currently open in the calling process.
The network subsystem has failed.
No buffer space is available.
The descriptor is not a socket.
The referenced socket is not a type that supports connection-oriented service.
The socket is marked as non-blocking and no connections are present to be accepted.
UNIX 98, with exceptions.
The NuTCRACKER Platform supports all the address families that WinSock 2.0 supports.
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
PTC MKS Toolkit 10.2 Documentation Build 28.