// Address represents a network address to be communicated with. It may be an IP address or domain address, not both. This interface doesn't resolve IP address for a given domain.
// Address represents a network address to be communicated with. It may be an IP address or domain
// address, not both. This interface doesn't resolve IP address for a given domain.
typeAddressinterface{
IP()net.IP// IP of this Address
Domain()string// Domain of this Address
Port()uint16// Port of this Address
IP()net.IP// IP of this Address
Domain()string// Domain of this Address
Port()uint16// Port of this Address
PortBytes()[]byte// Port in bytes, network byte order
IsIPv4()bool// True if this Address is an IPv4 address
IsIPv6()bool// True if this Address is an IPv6 address
IsIPv4()bool// True if this Address is an IPv4 address
IsIPv6()bool// True if this Address is an IPv6 address
IsDomain()bool// True if this Address is an domain address
String()string// String representation of this Address