ynet

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConnMg

func NewConnMg(ip string, port int, maxSize int, timeout time.Duration, block bool) iface.IConnManager

NewConnMg

Types

type ConnManager

type ConnManager struct {
	// contains filtered or unexported fields
}

ConnManager

func (*ConnManager) GetConn

func (mg *ConnManager) GetConn() (conn *net.TCPConn, err error)

获取连接

func (*ConnManager) SetConn

func (mg *ConnManager) SetConn(conn *net.TCPConn) (err error)

归还连接

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL