tcpclient

package
v1.19.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientIf

type ClientIf interface {
	IsAlive() bool
	Connect() error
	Send(extID int, data []byte) (int, error)
	DisConnect() error
}

ClientIf 客户端操作接口

func New

func New(serverIP string, serverPort uint) ClientIf

New 实例化TcpClient

Jump to

Keyboard shortcuts

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