epoll

package
v0.0.0-...-41d7d3e Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Epoll

type Epoll struct {
	ConnSet *util.Set
	// contains filtered or unexported fields
}

func NewEpoll

func NewEpoll() (*Epoll, error)

func (*Epoll) Add

func (e *Epoll) Add(conn net.Conn) error

func (*Epoll) Remove

func (e *Epoll) Remove(conn net.Conn) error

func (*Epoll) Wait

func (e *Epoll) Wait() ([]net.Conn, error)

type HandlerConn

type HandlerConn func(conn net.Conn)

type Workerpool

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

func NewPool

func NewPool(w int, t int, handler HandlerConn) *Workerpool

func (*Workerpool) AddTask

func (wp *Workerpool) AddTask(conn net.Conn)

func (*Workerpool) Close

func (wp *Workerpool) Close()

func (*Workerpool) Start

func (wp *Workerpool) Start()

func (*Workerpool) StartWorker

func (wp *Workerpool) StartWorker()

Jump to

Keyboard shortcuts

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