DialManager

package
v0.0.0-...-155bb80 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2020 License: MIT Imports: 6 Imported by: 0

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)

向客户端发消息

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL