EventDriverSockets.createDatagramSocket

Creates a connection-less datagram socket.

interface EventDriverSockets
@safe nothrow
createDatagramSocket

Parameters

bind_address Address

The local bind address to use for the socket. It will be able to receive any messages sent to this address.

target_address Address

Optional default target address. If this is specified and the target address parameter of send is left to null, it will be used instead.

options DatagramCreateOptions

Optional options for datagram creation. If unset, DatagramCreateOptions.init is used.

Return Value

Returns a datagram socket handle if the socket was created successfully. Otherwise returns DatagramSocketFD.invalid.

Meta