epoll

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2022 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionHandler

type ConnectionHandler func([]byte, io.Writer) error

type Epoll

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

Epoll ...

func (*Epoll) AddOrClose

func (v *Epoll) AddOrClose(c net.Conn) error

AddOrClose ...

func (*Epoll) Close

func (v *Epoll) Close(c *netItem) error

Close ...

func (*Epoll) CloseAll

func (v *Epoll) CloseAll() (err error)

CloseAll ...

func (*Epoll) Wait

func (v *Epoll) Wait() (NetSlice, error)

Wait ...

type Events

type Events []unix.EpollEvent

type NetMap

type NetMap map[int]*netItem

type NetSlice

type NetSlice []*netItem

type Server

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

Server ...

func New

func New(conf servers.Config, handler ConnectionHandler, eof []byte, log logger.Logger) *Server

func (*Server) Down

func (s *Server) Down() error

Down ...

func (*Server) Up

func (s *Server) Up() (err error)

Up ...

Jump to

Keyboard shortcuts

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