StreamSocket.accept

Accept an incoming connection.

The blocking mode is always inherited.

class StreamSocket
@trusted
accept
()

Return Value

$(D_PSYMBOL Socket) for the accepted connection or $(D_KEYWORD null) if the call would block on a non-blocking socket.

Throws

$(D_PSYMBOL SocketException) if unable to accept.

Meta