Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDuplicatedConn = errors.New("duplicated conn")
Functions ¶
func NewActiveConn ¶
func NewActiveConn(id, host string, port uint, path string, cfg core.ConnCfg) (core.Connection, error)
发起请求建立连接
func NewPassiveConn ¶
func NewPassiveConn(id string, w http.ResponseWriter, r *http.Request, cfg core.ConnCfg) (core.Connection, error)
接收请求建立连接
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.