TcpConnection.adopt

AdoptStatus adopt(ref EventLoop loop, Handle clientHandle) @trusted nothrow

Adopt an already-accepted client socket.

On success, EVE takes ownership of clientHandle and the caller must not close it. On failure, ownership remains with the caller.

Parameters

loopEvent loop to register with.
clientHandleSocket handle from accept.

Returns

AdoptStatus — success, or an AdoptError payload with the

reason and the captured OS error code.