Documentation ¶
Index ¶
- Constants
- func NewAcceptor(f cellnet.EventFunc, q cellnet.EventQueue) cellnet.Peer
- func NewConnector(f cellnet.EventFunc, q cellnet.EventQueue) cellnet.Peer
- type AcceptedEvent
- type ConnectErrorEvent
- type ConnectedEvent
- type RecvErrorEvent
- type RecvEvent
- type SendErrorEvent
- type SendEvent
- type SessionClosedEvent
- type SessionExitEvent
- type SessionStartEvent
Constants ¶
View Source
const SendQueueLen = 10
默认10个长度的发送队列
Variables ¶
This section is empty.
Functions ¶
func NewAcceptor ¶
实例化一个侦听器
func NewConnector ¶
Types ¶
type SendErrorEvent ¶
会话发送数据时发生错误的事件
type SessionClosedEvent ¶
会话连接关闭事件
Click to show internal directories.
Click to hide internal directories.