netpoll

package
v0.0.0-...-b1c78d7 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EPollEventSize = 128
	EPollErrEvent  = unix.EPOLLERR | unix.EPOLLRDHUP | unix.EPOLLHUP
	EPollInEvent   = EPollErrEvent | unix.EPOLLIN
	EPollOutEvent  = EPollErrEvent | unix.EPOLLOUT
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Poller

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

func PollerInit

func PollerInit() (*Poller, error)

func (*Poller) Add

func (poller *Poller) Add(fd int, ev string) error

func (*Poller) Close

func (poller *Poller) Close() error

func (*Poller) Del

func (poller *Poller) Del(fd int) error

func (*Poller) Mod

func (poller *Poller) Mod(fd int, ev string) error

func (*Poller) Polling

func (poller *Poller) Polling(eventHandler func(fd int32, ev uint32)) error

Jump to

Keyboard shortcuts

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