Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EpollManager ¶
type EpollManager struct {
// contains filtered or unexported fields
}
EpollManager 基于 linux epoll 实现连接管理
type ManagerI ¶
type ManagerI interface { // Add 添加链接 Add(conn connect.ConnI) error // Remove 删除连接 Remove(conn connect.ConnI) error // Conn 根据ConnID获取Tcp连接 Conn(connID int) (connect.ConnI, error) // Size 获取当前连接数 Size() int // Vacuum 清空连接 Vacuum() }
ManagerI TCP 连接管理,添加、删除、通过以恶搞连接ID获得连接对象,当前连接数、清空全部连接等方法
Click to show internal directories.
Click to hide internal directories.