internal

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2018 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

func SockaddrToAddr added in v1.0.0

func SockaddrToAddr(sa syscall.Sockaddr) net.Addr

SockaddrToAddr returns a go/net friendly address

Types

type Poll added in v1.0.0

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

Poll ...

func OpenPoll added in v1.0.0

func OpenPoll() *Poll

OpenPoll ...

func (*Poll) AddRead added in v1.0.0

func (p *Poll) AddRead(fd int)

AddRead ...

func (*Poll) AddReadWrite added in v1.0.0

func (p *Poll) AddReadWrite(fd int)

AddReadWrite ...

func (*Poll) Close added in v1.0.0

func (p *Poll) Close() error

Close ...

func (*Poll) ModDetach added in v1.0.0

func (p *Poll) ModDetach(fd int)

ModDetach ...

func (*Poll) ModRead added in v1.0.0

func (p *Poll) ModRead(fd int)

ModRead ...

func (*Poll) ModReadWrite added in v1.0.0

func (p *Poll) ModReadWrite(fd int)

ModReadWrite ...

func (*Poll) Trigger added in v1.0.0

func (p *Poll) Trigger(note interface{}) error

Trigger ...

func (*Poll) Wait added in v1.0.0

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