Documentation
¶
Index ¶
- Variables
- type Client
- func (cli *Client) Connect(serverAddr, clientID, secret string, loginMode uint8, timeout time.Duration) error
- func (cli *Client) Disconnect()
- func (cli *Client) RecvAndUnpackPkt(timeout time.Duration) (interface{}, error)
- func (cli *Client) SendReqPkt(packet pkg.Packer) (uint32, error)
- func (cli *Client) SendRspPkt(packet pkg.Packer, sequenceID uint32) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRespNotMatch = errors.New("the response is not matched with the request")
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Disconnect ¶
func (cli *Client) Disconnect()
func (*Client) RecvAndUnpackPkt ¶
Click to show internal directories.
Click to hide internal directories.