You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
390 B
12 lines
390 B
package ziface
|
|
|
|
/*
|
|
连接管理抽象层
|
|
*/
|
|
type IConnManager interface {
|
|
Add(conn IConnection) //添加链接
|
|
Remove(conn IConnection) //删除连接
|
|
Get(connID uint32) (IConnection, error) //利用ConnID获取链接
|
|
Len() int //获取当前连接
|
|
ClearConn() //删除并停止所有链接
|
|
}
|