Documentation ¶
Index ¶
Constants ¶
View Source
const ( MarshalError = 0 NetError = 1 )
View Source
const ( //MsgHeaderLength Tcp消息头长度 MsgHeaderLength = 8 //MsgSizeLength 整个包体长度 MsgSizeLength = 4 //MaxConnection 最大链接接受数 MaxConnection = 1000 ConnectEventID = 1 DisconnectEventID = 2 )
Variables ¶
This section is empty.
Functions ¶
func Init_TcpClient ¶
func Init_TcpClient(handler msghandler, connCallBack connectEvent, ip, port string)
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
ConnInfo Tcp链接
var (
ClientConn *Client
)
type SendErrorType ¶
type SendErrorType uint8
Click to show internal directories.
Click to hide internal directories.