NetworkAddress

Represents a network/socket address.

Constructors

this
this(Address addr)
Undocumented in source.

Members

Functions

toAddressString
void toAddressString(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(void delegate(const(char)[]) @(safe) sink)

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

Properties

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

Family 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.

sockAddrInet4
inout(sockaddr_in)* sockAddrInet4 [@property getter]
Undocumented in source.
sockAddrInet6
inout(sockaddr_in6)* sockAddrInet6 [@property getter]
Undocumented in source.
sockAddrLen
socklen_t sockAddrLen [@property getter]

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

sockAddrUnix
inout(sockaddr_un)* sockAddrUnix [@property getter]
Undocumented in source.

Variables

sockAddrMaxLen
enum socklen_t sockAddrMaxLen;
Undocumented in source.

Meta