# Functions
NewClient create a new tcp client.
NewRawTCPConnHandler creates a new raw tcp connection handler.
NewServer create a new tcp server.
SetKeepAliveCount set the TCP_KEEPCNT option.
WithClientConnContextFunc sets connection context hook function opt.
WithClientErrorLogFunc sets error log function opt.
WithClientHandler sets client handler opt.
WithClientKeepAliveCount sets tcp keepalive count opt.
WithClientKeepAlivePeriod sets tcp keepalive period opt.
WithConnectAddress sets connect address opt.
WithListenAddress sets listen address opt.
WithServerBaseContextFunc sets server base context hook funcion opt.
WithServerConnContextFunc sets new connection context hook funcion opt.
WithServerErrorLogFunc sets error log function opt.
WithServerHandler sets server handler opt.
WithServerKeepAliveCount sets tcp keepalive count opt.
WithServerKeepAlivePeriod sets tcp keepalive period opt.
# Constants
connection state values.
connection state values.
connection state values.
connection state values.
# Variables
connext keys.
DefaultConnHandler is default connection handler.
default tcp options.
ErrAbortHandler means abort handler error.
ErrClientClosed means client has been closed.
ErrConnectionRefused means connection refused.
ErrServerClosed means server has been closed.
context keys.
context keys.
# Structs
Client over tcp.
ClientOptions is options of tcp client.
RawTCPConnHandler is raw tcp connection handler.
Server over tcp.
ServerOptions is server options.
# Interfaces
Conn is tcp connection.
ConnHandler is connection handler.
RawTCPHandler is raw tcp handler.
# Type aliases
ClientOption is option setter for tcp client.
ConnState is connection state.
ServerOption is option setter for server.