internal

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package internal is the concrete implementation of epoll and kqueue in low-level OpenPoll factory method is package entry.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetKeepAlive

func SetKeepAlive(fd, secs int) error

func SockaddrToAddr

func SockaddrToAddr(sa syscall.Sockaddr) net.Addr

SockaddrToAddr returns a go/net friendly address

Types

type Poll

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

Poll ...

func OpenPoll

func OpenPoll() *Poll

OpenPoll ...

func (*Poll) AddRead

func (p *Poll) AddRead(fd int)

AddRead ...

func (*Poll) AddReadWrite

func (p *Poll) AddReadWrite(fd int)

AddReadWrite ...

func (*Poll) Close

func (p *Poll) Close() error

Close ...

func (*Poll) End

func (p *Poll) End()

End

func (*Poll) ModDetach

func (p *Poll) ModDetach(fd int)

ModDetach ...

func (*Poll) ModRead

func (p *Poll) ModRead(fd int)

ModRead ...

func (*Poll) ModReadWrite

func (p *Poll) ModReadWrite(fd int)

ModReadWrite ...

func (*Poll) Trigger

func (p *Poll) Trigger(note any) error

Trigger ...

func (*Poll) Wait

func (p *Poll) Wait(iter func(fd int, note any) error) error

Wait ...

Jump to

Keyboard shortcuts

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