Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TTCPClient ¶
type TTCPClient struct { AutoReconnect bool OnRun func(*conn.TConnection) // OnRead func(*conn.TData) // 读取回调 OnConnect func(*conn.TConnection) // 连接成功 OnDisconnect func(*conn.TConnection) // 断开成功 // contains filtered or unexported fields }
TTCPClient TCP连接客户端
type TTCPServer ¶
type TTCPServer struct { MaxConnNum int OnRun func(*conn.TConnection) // 自处理循环回调 OnRead func(*conn.TData) // 读取回调(buf, 包长, sessionid) OnClientConnect func(*conn.TConnection) // 客户端连接上来了 OnClientDisconnect func(*conn.TConnection) // 客户端断开了 // contains filtered or unexported fields }
TTCPServer 服务器类
Click to show internal directories.
Click to hide internal directories.