Documentation ¶
Index ¶
Constants ¶
View Source
const (
SHA_DIGEST_LENGTH = 20
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Session *net2.Session RPCClient *grpc_util.RPCClient Codec *MTProtoCodec RemoteAddr net.Addr LocalAddr net.Addr // TODO(@benqi): 移到handshake处理器里 Nonce []byte // 每连接缓存客户端生成的Nonce ServerNonce []byte // 每连接缓存服务生成的ServerNonce NewNonce []byte A *big.Int P *big.Int }
func (*Client) OnEncryptedMessage ¶
func (*Client) OnHandshake ¶
handshake
func (*Client) OnUnencryptedMessage ¶
MsgsAck
Click to show internal directories.
Click to hide internal directories.