tcp_epoll

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2020 License: GPL-3.0 Imports: 11 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 {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewEpoll

func NewEpoll() (*Epoll, error)

func (*Epoll) AddOrClose

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

func (*Epoll) Close

func (e *Epoll) Close(c *netConnItem) error

func (*Epoll) CloseAll

func (e *Epoll) CloseAll() (er error)

func (*Epoll) Wait

func (e *Epoll) Wait() (NetConns, error)

type NetConns

type NetConns []*netConnItem

type Server

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

func NewServer added in v1.8.0

func NewServer() *Server

func (*Server) Down

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

func (*Server) SetAddr

func (s *Server) SetAddr(addr string)

func (*Server) SetHandler

func (s *Server) SetHandler(h ConnectionHandler)

func (*Server) Up

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

Jump to

Keyboard shortcuts

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