NetworkAddress

Represents a network/socket address. (adapted from vibe.core.net)

Members

Functions

toAddressString
void toAddressString(scope void delegate(const(char)[]) @safe sink)

Returns a string representation of the IP address

toAddressString
string toAddressString()

Returns a string representation of the IP address

toString
string toString()
void toString(scope void delegate(const(char)[]) @safe sink)

Returns a full string representation of the address, including the port number.

Properties

family
ushort family [@property getter]
ushort family [@property setter]

Family (AF_) of the socket address.

port
ushort port [@property getter]
ushort port [@property setter]

The port in host byte order.

sockAddr
inout(sockaddr)* sockAddr [@property getter]

A pointer to a sockaddr struct suitable for passing to socket functions.

sockAddrLen
socklen_t sockAddrLen [@property getter]

Size of the sockaddr struct that is returned by sockAddr().

sockAddrMaxLen
socklen_t sockAddrMaxLen [@property getter]

Maximum size of any sockaddr struct, regardless of address family.

Meta