network

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitTcp

func InitTcp()

Types

type TcpClient

type TcpClient struct {
	// contains filtered or unexported fields
}

func NewTcpClint

func NewTcpClint(conn net.Conn, headLen int32, tagLen int32) *TcpClient

func (*TcpClient) Close

func (c *TcpClient) Close() error

func (*TcpClient) LocalAddr

func (c *TcpClient) LocalAddr() net.Addr

func (*TcpClient) Read

func (c *TcpClient) Read() (int32, []byte, error)

func (*TcpClient) RemoteAddr

func (c *TcpClient) RemoteAddr() net.Addr

func (*TcpClient) Write

func (c *TcpClient) Write(message []byte, tag int32) (int, error)

Jump to

Keyboard shortcuts

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