package
0.0.0-20230424045628-a36dcc1d90e4
Repository: https://github.com/weedge/lib.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
NewBuffer Creates a buffer.
NewHeaderLenDecoder Creates a decoder based on header length headerLen Indicates the header of a TCP packet, which describes the byte length of the packet readMaxLen Specifies the maximum length of the client packet read.
NewHeaderLenEncoder Creates an encoder based on header length headerLen Indicates the header of a TCP packet, which describes the byte length of the packet writeBufferLen Indicates the recommended length of a packet sent by the server to the client.
NewServer init server to start.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
man epoll_ctl see EPOLL_EVENTS detail1 2 8 16 8192 2147483648EpollReadEvents = unix.EPOLLIN | unix.EPOLLPRI | unix.EPOLLERR | unix.EPOLLHUP | unix.EPOLLRDHUP | unix.EPOLLET.
accept event op completed.
close connect.
event stream ready to read.
kenerl poll in event ready.
provide buff ok.
read event op completed.
connect timeout.
No description provided by the author
write event op completed.
epoll/kqueue event.
add epoll IN ready event for registered eventfd in iouring.
kenerl sqpoll + poll, user space poll wait cqe.
No description provided by the author
all async block event (interrupt).
poll IN ready event.
less syscall for io_uring_enter.
stream unbounded worker pool (worker queue).
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author