NetworkAddress

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

Members

Functions

toAddressString
string toAddressString()

Returns a string representation of the IP address

toString
string toString()

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.

ipv6
bool ipv6 [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
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
uint sockAddrLen [@property getter]

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

Meta