TcpConnection.adopt

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

Adopt an already-accepted client socket.

Parameters

loopEvent loop to register with.
clientHandleSocket handle from accept.

Returns

AdoptResult.OK on success, or an error variant.