Struct NetworkAddress

Represents a network/socket address.

Properties

Name Type Description
family [get, set] ushort Family (AF_) of the socket address.
port [get, set] ushort The port in host byte order.
sockAddr [get] inout(core.sys.posix.sys.socket.sockaddr)* A pointer to a sockaddr struct suitable for passing to socket functions.
sockAddrInet4 [get] inout(core.sys.posix.netinet.in_.sockaddr_in)*
sockAddrInet6 [get] inout(core.sys.posix.netinet.in_.sockaddr_in6)*
sockAddrLen [get] int Size of the sockaddr struct that is returned by sockAddr().

Methods

Name Description
toAddressString Returns a string representation of the IP address
toString Returns a full string representation of the address, including the port number.

Authors

Sönke Ludwig

Copyright

© 2012-2014 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.