internal

package
v0.0.0-...-d421704 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetKeepAlive

func SetKeepAlive(fd, secs int) error

SetKeepAlive 设置 fd KeepAlive

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) 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 interface{}) error

Trigger ...

func (*Poll) Wait

func (p *Poll) Wait(iter func(fd int, note interface{}) error) error

Wait ...

Jump to

Keyboard shortcuts

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