# Packages
No description provided by the author
# Functions
AdornFlow cflow chain.
AdornGzip gzip chain.
AdornGzipLevel gzip chain with level level see gzip package.
AdornIol ciol chain.
AdornSnappy snappy chain.
AdornZlib zlib chain.
AdornZlibLevel zlib chain with the level level see zlib package.
AdornZlibLevelDict zlib chain with the level and dict level see zlib package.
BaseAdornStcp base adorn encrypt with method and password.
BaseAdornTLSClient base adorn tls client.
BaseAdornTLSServer base adorn tls server.
DialContext dial context with dialer WARNING: this can leak a goroutine for as long as the underlying Dialer implementation takes to timeout A Conn returned from a successful Dial after the context has been canceled will be immediately closed.
GetFreePort asks the kernel for a free open port that is ready to use.
GetFreePorts asks the kernel for free open ports that are ready to use.
IP returns a equivalent Numeric to given IP address, return nil if ip is neither IPv4 nor IPv6.
IPv4 returns a equivalent Numeric to given uint32 number,.
IPv6 returns a equivalent Numeric to given uint32 number,.
IsDomain 是否是域名,只检查host或ip,不可带port,否则会误判.
IsErrClosed is error closed.
IsErrDeadline is error i/o deadline reached.
IsErrRefused is error connection refused.
IsErrSocketNotConnected is error socket is not connected.
IsErrTemporary is net error timeout.
IsErrTimeout is net error timeout.
IsIntranet is intranet network,if host is domain,it will looks up host using the local resolver.
IsIntranetIP is intranet network or not.
JoinHostPort combines host and port into a network address of the form "host:port".
Listen announces on the local network address and afterChains.
MustGetFreePort calls GetFreePort and panics on error.
NewIPNet returns Network built using given net.IPNet.
NewListener new listener.
NextIP returns the next sequential ip.
PreviousIP returns the previous sequential ip.
SplitHostPort splits a network address of the form "host:port", "host%zone:port", "[host]:port" or "[host%zone]:port" into host or host%zone and port.
ToIP 数值转换为net.ToIP.
# Variables
ErrInvalidBitPosition is returned when bits requested is not valid.
# Interfaces
ContextDialer A ContextDialer dials using a context.
Dialer A Dialer is a means to establish a connection.
# Type aliases
AdornConn defines the conn decorate.
AdornConnsChain defines a adornConn array.
Numeric represents an ToIP address using uint32 as internal storage.
NumericMask represents an IP address using uint32 as internal storage.