package
0.0.5
Repository: https://github.com/peakchen/xcommon.git
Documentation: pkg.go.dev

# Functions

func: DecodeCmd purpose: DecodeCmd message cmd to mainid and subid.
func: EncodeCmd purpose: Encode message mainid and subid to cmd.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ip地址int64转string.
ip地址string转int64.
No description provided by the author
No description provided by the author
会话消息消费者 session message consumer.
会话消息生产者 session message producer.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
@func: UnPackExternalMsg 解服务器外部消息(客户端,clientsession 注册消息) @parma1: 连接对象 c *net.TCPConn @param2: 解包对象 pack IMessagePack */.
@func: UnPackInnerMsg 解服务器内部消息(server 间客户端发来的请求或者其他rpc消息传递) @parma1: 连接对象 c *net.TCPConn @param2: 解包对象 pack IMessagePack */.

# Constants

真实数据长度 (主命令+次命令+发送类型).
Identify 长度.
Identify 内容.
主命令.
非data数据长度(包体之前的)->(主命令+次命令+发送类型+datalen).
发送类型.
RemoteAddr 长度.
RemoteAddr 内容.
次命令.
真实数据长度 (主命令+次命令+发送类型+ Identify长度 + Identify内容+RemoteAddr 长度+RemoteAddr 内容).
非data数据长度(包体之前的)->(主命令+次命令+发送类型+ Identify长度 + Identify内容+datalen+RemoteAddr 长度+RemoteAddr 内容).
session begin number with 10000.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
message Post type.
message Post type.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

model: ClientProtocol Client to Server, message */.
No description provided by the author
model: ServerProtocol server to server, message */.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

after dial connect todo action.
No description provided by the author
No description provided by the author
session, data, data len.