Documentation ¶
Overview ¶
DialManager project DialManager.go
DialManager document
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionSession ¶
type ConnectionSession struct { MsgWriteCh chan *bs_tcp.TCPTransferMsg //从接受来自逻辑层消息的管道 Quit chan bool // contains filtered or unexported fields }
作为客户端去连接
func CreateClient ¶
func CreateClient(remote_address string, logicChannel chan proto.Message) *ConnectionSession
func (*ConnectionSession) RecvPackege ¶
func (session *ConnectionSession) RecvPackege(logicChannel chan proto.Message)
func (*ConnectionSession) SendPackege ¶
func (session *ConnectionSession) SendPackege(logicChannel chan proto.Message)
向客户端发消息
Click to show internal directories.
Click to hide internal directories.