socket

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Socket

type Socket interface {
	//Write 向对端写入数据
	Write(buf []byte) error
	//Read 读取单次所有数据包 不等待直接返回
	Read() ([]byte, error)
	//Readn 读取n字节
	Readn(p []byte) (int, error)
	//Close
	Close()
	//GetAddr 获取客户端ip地址
	GetAddr() tcpip.Address
	//GetRemoteAddr 获取远程客户端ip地址
	GetRemoteAddr() *tcpip.FullAddress
	//GetQueue 获取接收时间队列
	GetQueue() *waiter.Queue
	GetNotify() chan struct{}
}

Socket ***client

Jump to

Keyboard shortcuts

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