Function EventDriverSockets.adoptDatagramSocket
Adopts an existing datagram socket.
The socket must be properly bound before this function is called.
Parameters
Name | Description |
---|---|
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
will be returned instead.