EventDriverSockets.adoptDatagramSocket

Adopts an existing datagram socket.

The socket must be properly bound before this function is called.

interface EventDriverSockets
@safe nothrow
adoptDatagramSocket
(
int socket
)

Parameters

socket int

Socket file descriptor to adopt

Return Value

Returns a socket handle corresponding to the passed socket descriptor. If the same file descriptor is already registered, DatagramSocketFD.invalid will be returned instead.

Meta