syscall

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package syscall wrapped syscall for knetty

Index

Constants

This section is empty.

Variables

View Source
var (
	// EpollET et for epoll
	EpollET = -syscall.EPOLLET
)

Functions

func EpollCtl

func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error)

EpollCtl ctl for epoll

func EpollWait

func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)

EpollWait wait for epoll

func Readv

func Readv(fd int, bs [][]byte) (int, error)

func SetConnectionNoBlock

func SetConnectionNoBlock(fd int) error

SetConnectionNoBlock set conn read/set no block

func Writev

func Writev(fd int, bs [][]byte) (int, error)

Types

type EpollEvent

type EpollEvent struct {
	Events uint32
	Udata  [8]byte
}

EpollEvent epoll event

Jump to

Keyboard shortcuts

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