EventLoop.createDatagramEndpoint

Create datagram connection: socket family $(D_PSYMBOL AddressFamily.INET) or $(D_PSYMBOL AddressFamily.INET6) depending on host (or family if specified), socket type $(D_PSYMBOL SocketType.DGRAM).

This method is a coroutine which will try to establish the connection in the background.

See the create_connection() method for parameters.

class EventLoop
createDatagramEndpoint
(,
in char[] localHost = null
,
in char[] localService = null
,
in char[] remoteHost = null
,
in char[] remoteService = null
,
AddressFamily addressFamily = UNSPECIFIED!AddressFamily
,
ProtocolType protocolType = UNSPECIFIED!ProtocolType
,
AddressInfoFlags addressInfoFlags = UNSPECIFIED!AddressInfoFlags
)

Return Value

Type: auto

Tuple!(DatagramTransport, "datagramTransport", DatagramProtocol, "datagramProtocol")

Meta