Versions in this module Expand all Collapse all v1 v1.24.4 Aug 19, 2016 Changes in this version + const AddressFamilyDomain + const AddressFamilyIPv4 + const AddressFamilyIPv6 + const KCPNetwork + const TCPNetwork + const UDPNetwork + const WSNetwork + var AnyIP = IPAddress([]byte{ ... }) + var ErrInvalidPortRange = errors.New("Invalid port range.") + var LocalHostIP = IPAddress([]byte{ ... }) + type Address interface + Domain func() string + Equals func(Address) bool + Family func() AddressFamily + IP func() net.IP + String func() string + func DomainAddress(domain string) Address + func IPAddress(ip []byte) Address + func ParseAddress(addr string) Address + type AddressFamily int + func (this AddressFamily) Either(fs ...AddressFamily) bool + func (this AddressFamily) IsDomain() bool + func (this AddressFamily) IsIPv4() bool + func (this AddressFamily) IsIPv6() bool + type Destination interface + Address func() Address + Equals func(Destination) bool + IsTCP func() bool + IsUDP func() bool + NetAddr func() string + Network func() Network + Port func() Port + String func() string + func DestinationFromAddr(addr net.Addr) Destination + func TCPDestination(address Address, port Port) Destination + func UDPDestination(address Address, port Port) Destination + type IPNet struct + func NewIPNet() *IPNet + func NewIPNetInitialValue(data map[uint32]byte) *IPNet + func (this *IPNet) Add(ipNet *net.IPNet) + func (this *IPNet) Contains(ip net.IP) bool + func (this *IPNet) Serialize() []uint32 + type Network string + func (this Network) AsList() *NetworkList + func (this Network) String() string + type NetworkList []Network + func NewNetworkList(networks collect.StringList) NetworkList + func (this *NetworkList) HasNetwork(network Network) bool + type Port uint16 + func PortFromBytes(port []byte) Port + func PortFromInt(v int) (Port, error) + func PortFromString(s string) (Port, error) + func (this Port) Bytes(b []byte) []byte + func (this Port) String() string + func (this Port) Value() uint16 + type PortRange struct + From Port + To Port + func (this PortRange) Contains(port Port) bool + type TimeOutReader struct + func NewTimeOutReader(timeout int, connection net.Conn) *TimeOutReader + func (reader *TimeOutReader) GetTimeOut() int + func (reader *TimeOutReader) Read(p []byte) (int, error) + func (reader *TimeOutReader) Release() + func (reader *TimeOutReader) SetTimeOut(value int) Incompatible versions in this module v3.50.2+incompatible Oct 29, 2018