Calls accept() to accept a connection from a listening socket, sets this.fd to the accepted socket file descriptor and memorises the remote address and port.
the listening socket to accept the new connection from
socket flags, see description above
the file descriptor of the accepted socket on success or -1 on failure. On failure errno is set appropriately.
See Implementation
Calls accept() to accept a connection from a listening socket, sets this.fd to the accepted socket file descriptor and memorises the remote address and port.