DatagramSocket.create

Create a datagram socket

This creates a SOCK_DGRAM (UDP type) socket.

struct DatagramSocket
static @safe @nogc
create
(
SockAddr bindAddr
)

Parameters

bindAddr SockAddr

a socket address for the server to connect to.

Return Value

Returns the newly created socket.

Throws

ErrnoException if the connection fails. Also throws this if one of the system calls fails.

Meta