socket_accept/4

socket_accept(+ SOCKET, - CLIENT, - STREAM)*

Interface to system call accept, used for servers to wait for connections at socket SOCKET. The stream descriptor STREAM represents the resulting connection. If the socket belongs to the domain AF_INET, CLIENT unifies with an atom containing the IP address for the client in numbers and dots notation.