UnknownAddressReference

Encapsulates a reference to an arbitrary socket address.

@safe
class UnknownAddressReference : Address {
protected
sockaddr* sa;
protected
socklen_t len;
}

Constructors

this
this(sockaddr* sa, socklen_t len)

Constructs an Address with a reference to the specified sockaddr.

this
this(const(sockaddr)* sa, socklen_t len)

Constructs an Address with a copy of the specified sockaddr.

Inherited Members

From Address

name
sockaddr* name [@property getter]

Returns pointer to underlying sockaddr structure.

nameLen
socklen_t nameLen [@property getter]

Returns actual size of underlying sockaddr structure.

addressFamily
AddressFamily addressFamily [@property getter]

Family of this address.

toAddrString
string toAddrString()

Attempts to retrieve the host address as a human-readable string.

toHostNameString
string toHostNameString()

Attempts to retrieve the host name as a fully qualified domain name.

toPortString
string toPortString()

Attempts to retrieve the numeric port number as a string.

toServiceNameString
string toServiceNameString()

Attempts to retrieve the service name as a string.

toString
string toString()

Human readable string representing this address.

Meta