reactor

package
v0.0.0-...-633aa1b Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const MaxPacketSize = 65536

Variables

View Source
var (
	ErrProtocolUnsupport = errors.New("protocol unsupport")
	ErrPlatformUnsupport = errors.New("platform unsupport")
)

Functions

This section is empty.

Types

type Conn

type Conn interface {
	net.Conn
	FD() int
	SetNextReadSize(n int)
	SetPoller(pd Poller)
	Pin() bool
	Unpin() bool
}

type Disconnector

type Disconnector func(Conn, []byte, error)

type Poller

type Poller interface {
	Open(Conn) error
	Close(Conn) error
}

type Reader

type Reader func(Conn, []byte)

Directories

Path Synopsis
dup

Jump to

Keyboard shortcuts

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