Socket.accept

Socket accept() @trusted

Accept an incoming connection. If the socket is blocking, accept waits for a connection request. Throws SocketAcceptException if unable to _accept. See accepting for use with derived classes.

Socket accept(out Address peerAddress) @trusted

Accept an incoming connection and retrieve the peer Address. If the socket is blocking, accept waits for a connection request. Throws SocketAcceptException if unable to _accept. See accepting for use with derived classes.