IMPORT_C int accept(int, struct sockaddr *, size_t *);
Description
accepts a connection on a socket. An incoming connection is acknowledged and associated with an immediately created socket.
The original socket is returned to the listening state.
Parameters
int |
Is the integer descriptor of the desired socket.
|
struct sockaddr * |
Points to a sockaddr structure containing the socket address.
|
size_t * |
Points to an integer that states the address length in bytes.
|
|
Return value
int |
On Success, returns a non-negative integer, which is a descriptor of the accepted socket. Upon return, addrlen contains the
actual length in bytes of the address returned. On Failure, returns -1, errno may be set.
|
|