client

package
v0.0.0-...-6ce5e98 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PacketHeaderLength = 2
	ByteOrder          = binary.BigEndian
)

Functions

This section is empty.

Types

type TcpConn

type TcpConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewMockConn

func NewMockConn(addr string, readcall func(uint16, *bytes.Buffer)) *TcpConn

func (*TcpConn) Close

func (self *TcpConn) Close()

Close 关闭

func (*TcpConn) Send

func (self *TcpConn) Send(data []byte)

func (*TcpConn) Start

func (self *TcpConn) Start()

Jump to

Keyboard shortcuts

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