Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LiangTCPClient ¶
type LiangTCPClient struct {
OnMsg OnMsgFunc
OnDisconn OnDisconnFunc
//port int
AESKey []byte
// contains filtered or unexported fields
}
-------------------------------------------------------------LiangTCPClient
func (*LiangTCPClient) Connect ¶
func (t *LiangTCPClient) Connect(addr string) error
func (*LiangTCPClient) SendMsg ¶
func (t *LiangTCPClient) SendMsg(buf []byte) error
type LiangTCPServer ¶
type LiangTCPServer struct {
OnMsg OnMsgFunc
OnConn OnConnFunc
OnDisconn OnDisconnFunc
//port int
AESKey []byte
}
-------------------------------------------------------------LiangTCPServer
func (*LiangTCPServer) Listen ¶
func (t *LiangTCPServer) Listen(addr string) *LiangTCPServer
type OnConnFunc ¶
type OnDisconnFunc ¶
Click to show internal directories.
Click to hide internal directories.