eventloop

package
v0.0.0-...-a905e96 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 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 EventLoop

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

func New

func New() *EventLoop

func (*EventLoop) AddSocketAndEnableRead

func (el *EventLoop) AddSocketAndEnableRead(fd int, s tcp.Connection) error

AddSocketAndEnableRead 增加 Socket 到时间循环中,并注册可读事件

func (*EventLoop) Run

func (el *EventLoop) Run(network, address string)

linux3.9+

Jump to

Keyboard shortcuts

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