vibe.d beta banner
get vibe.d
0.10.0

Asynchronous I/O that doesn’t get in your way, written in D

Function EventDriverSockets.adoptDatagramSocket

Adopts an existing datagram socket.

abstract DatagramSocketFD adoptDatagramSocket (
  int socket
) nothrow @safe;

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

Parameters

NameDescription
socket Socket file descriptor to adopt

Returns

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

Authors
Copyright
License