Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Allenxuxu/gev
/ functions
Functions
368 in github.com/Allenxuxu/gev
⨍
Functions
368
◇
Types & classes
78
↓ 1 callers
Method
HandleEvent
(fd int, events poller.Event)
eventloop/eventloop.go:22
↓ 1 callers
Function
HandlePing
HandlePing 处理 ping 返回应答信息
plugins/websocket/ws/util/util.go:49
↓ 1 callers
Function
HandlePong
HandlePong 处理 pong 返回应答信息
plugins/websocket/ws/util/util.go:54
↓ 1 callers
Method
IsControl
IsControl checks whether the c is control operation code. See https://tools.ietf.org/html/rfc6455#section-5.5
plugins/websocket/ws/frame.go:29
↓ 1 callers
Method
IsNotUsed
IsNotUsed reports whether the code is predefined in not used range.
plugins/websocket/ws/frame.go:114
↓ 1 callers
Method
IsProtocolDefined
IsProtocolDefined reports whether the code is already defined by protocol specification.
plugins/websocket/ws/frame.go:135
↓ 1 callers
Method
IsProtocolReserved
IsProtocolReserved reports whether the code is defined by protocol specification to be reserved only for application usage purpose.
plugins/websocket/ws/frame.go:156
↓ 1 callers
Method
IsProtocolSpec
IsProtocolSpec reports whether the code should be defined by protocol specification.
plugins/websocket/ws/frame.go:130
↓ 1 callers
Function
Log
Log makes use of Logger
log/log.go:65
↓ 1 callers
Function
Logf
Logf makes use of Logger
log/log.go:74
↓ 1 callers
Method
Logf
(format string, v ...interface{})
log/log.go:13
↓ 1 callers
Function
New
New server
example/maxconnection/main.go:20
↓ 1 callers
Function
New
New server
example/pushmessage/main.go:22
↓ 1 callers
Function
New
New server
example/bufferlength/main.go:22
↓ 1 callers
Function
NewPingFrame
NewPingFrame creates ping frame with p as payload. Note that p is not copied. Note that p must have length of MaxControlFramePayloadSize bytes or less
plugins/websocket/ws/frame.go:223
↓ 1 callers
Function
NewPongFrame
NewPongFrame creates pong frame with p as payload. Note that p is not copied. Note that p must have length of MaxControlFramePayloadSize bytes or less
plugins/websocket/ws/frame.go:231
↓ 1 callers
Function
NewWebSocketServer
NewWebSocketServer 创建 WebSocket Server
benchmarks/websocket/server.go:36
↓ 1 callers
Method
OnClose
(c *gev.Connection)
plugins/websocket/wrap.go:15
↓ 1 callers
Method
OnConnect
(c *gev.Connection)
plugins/websocket/wrap.go:13
↓ 1 callers
Method
OnMessage
(c *gev.Connection, msg []byte)
plugins/websocket/wrap.go:14
↓ 1 callers
Function
Packet
(data []byte)
example/protocol/client/main.go:13
↓ 1 callers
Method
PacketBuf
PacketBuf 内部使用,临时缓冲区
eventloop/eventloop.go:71
↓ 1 callers
Function
ParseCloseFrameData
ParseCloseFrameData parses close frame status code and closure reason if any provided. If there is no status code in the payload the empty status code
plugins/websocket/ws/read.go:89
↓ 1 callers
Method
Pop
()
benchmark_load_balance_test.go:19
↓ 1 callers
Function
PutCloseFrameBody
PutCloseFrameBody encodes code and reason into buf. It will panic if the buffer is too small to accommodate a code or a reason. PutCloseFrameBody do
plugins/websocket/ws/frame.go:267
↓ 1 callers
Method
ReadBufferLength
ReadBufferLength read buffer 当前积压的数据长度
server_std.go:288
↓ 1 callers
Function
RejectionHeader
RejectionHeader returns an option that makes connection to be rejected with given HTTP headers.
plugins/websocket/ws/errors.go:103
↓ 1 callers
Method
Run
Run 启动事件循环
eventloop/eventloop.go:111
↓ 1 callers
Method
RunAfter
RunAfter 延时任务
server.go:71
↓ 1 callers
Function
SendInLoop
(f SendInLoopFunc)
connection_options.go:11
↓ 1 callers
Method
Start
Start server
example/maxconnection/main.go:34
↓ 1 callers
Method
Start
Start server
example/bufferlength/main.go:36
↓ 1 callers
Method
Stop
Stop 关闭 Server
server_std.go:116
↓ 1 callers
Method
Stop
Stop server
example/maxconnection/main.go:39
↓ 1 callers
Method
Stop
Stop server
example/bufferlength/main.go:42
↓ 1 callers
Method
Stop
Stop 关闭事件循环
eventloop/eventloop.go:116
↓ 1 callers
Function
UnPacket
(c net.Conn)
example/protocol/client/main.go:21
↓ 1 callers
Method
UnPacket
UnPacket 拆包
protocol.go:19
↓ 1 callers
Method
Upgrade
Upgrade zero-copy upgrades connection to WebSocket. It interprets given conn as connection with incoming HTTP Upgrade request. It is a caller respons
plugins/websocket/ws/ws.go:158
↓ 1 callers
Function
VirtualReadHeader
VirtualReadHeader reads a frame header from r.
plugins/websocket/ws/read.go:19
↓ 1 callers
Method
Wake
Wake 唤醒 kqueue
poller/kqueue.go:45
↓ 1 callers
Function
bsplit3
(bts []byte, sep byte)
plugins/websocket/ws/util.go:40
↓ 1 callers
Function
btsSelectExtensions
(h []byte, selected []httphead.Option, check func(httphead.Option) bool)
plugins/websocket/ws/http.go:155
↓ 1 callers
Function
btsSelectProtocol
(h []byte, check func([]byte) bool)
plugins/websocket/ws/http.go:140
↓ 1 callers
Function
canonicalizeHeaderKey
Algorithm below is like standard textproto/CanonicalMIMEHeaderKey, except that it operates with slice of bytes and modifies it inplace without copying
plugins/websocket/ws/util.go:76
↓ 1 callers
Method
closeTimeoutConn
()
server_std.go:431
↓ 1 callers
Method
closeTimeoutConn
()
connection.go:86
↓ 1 callers
Method
doPendingFunc
()
server_std.go:383
↓ 1 callers
Method
doPendingFunc
()
eventloop/eventloop.go:155
↓ 1 callers
Function
file_proto_user_proto_init
()
example/protobuf/proto/user.pb.go:237
↓ 1 callers
Method
handleRead
(fd int)
connection.go:220
↓ 1 callers
Method
handleWrite
(fd int)
connection.go:253
↓ 1 callers
Method
handlerProtocol
(tmpBuffer *[]byte, buffer *ringbuffer.RingBuffer)
server_std.go:419
↓ 1 callers
Function
httpParseHeaderLine
httpParseHeaderLine parses HTTP header as key-value pair. It returns parsed values and true if parse is ok.
plugins/websocket/ws/http.go:126
↓ 1 callers
Function
httpParseRequestLine
httpParseRequestLine parses http request line like "GET / HTTP/1.0".
plugins/websocket/ws/http.go:77
↓ 1 callers
Function
httpParseVersion
httpParseVersion parses major and minor version of HTTP protocol. It returns parsed values and true if parse is ok.
plugins/websocket/ws/http.go:93
↓ 1 callers
Function
httpWriteHeader
(bw *bufio.Writer, key, value string)
plugins/websocket/ws/http.go:163
↓ 1 callers
Function
httpWriteResponseError
(err error, code int, header HandshakeHeaderFunc)
plugins/websocket/ws/http.go:202
↓ 1 callers
Function
httpWriteResponseUpgrade
(nonce []byte, hs Handshake, header HandshakeHeaderFunc)
plugins/websocket/ws/http.go:174
↓ 1 callers
Function
initAcceptFromNonce
initAcceptFromNonce fills given slice with accept bytes generated from given nonce bytes. Given buffer should be exactly acceptSize bytes.
plugins/websocket/ws/nonce.go:23
↓ 1 callers
Function
loopBoardcast
(serv *example)
example/websocket/main.go:129
↓ 1 callers
Function
min
(data IntHeap)
benchmark_load_balance_test.go:46
↓ 1 callers
Function
newListener
newListener 创建Listener
listener.go:30
↓ 1 callers
Function
newTmpConnection
()
protocol_test.go:33
↓ 1 callers
Function
pow
pow for integers implementation. See Donald Knuth, The Art of Computer Programming, Volume 2, Section 4.6.3
plugins/websocket/ws/util.go:28
↓ 1 callers
Method
readLoop
()
server_std.go:302
↓ 1 callers
Method
reset
()
context.go:34
↓ 1 callers
Method
sendInLoop
(data []byte)
server_std.go:396
↓ 1 callers
Function
sockAddrToString
(sa unix.Sockaddr)
connection.go:330
↓ 1 callers
Function
startClient
(network, addr string)
server_test.go:70
↓ 1 callers
Function
startWebSocketClient
(addr string)
example/websocket/wsserver_test.go:101
↓ 1 callers
Function
startWebSocketClient
(startC chan interface{}, closeC chan interface{}, result, req chan int64)
benchmarks/websocket/client/main.go:54
↓ 1 callers
Method
wakeHandlerRead
()
poller/epoll.go:65
↓ 1 callers
Function
writeAccept
(bw *bufio.Writer, nonce []byte)
plugins/websocket/ws/nonce.go:41
↓ 1 callers
Method
writeLoop
()
server_std.go:340
Method
AddRead
AddRead 注册fd到kqueue并注册可读事件
poller/kqueue.go:71
Method
AddWrite
AddWrite 注册fd到epoll,并注册可写事件
poller/epoll.go:102
Function
BenchmarkHeap
(b *testing.B)
benchmark_load_balance_test.go:37
Function
BenchmarkMin
(b *testing.B)
benchmark_load_balance_test.go:57
Method
Close
()
listener.go:99
Method
Close
Close 关闭 kqueue
poller/kqueue.go:55
Method
Close
Close 关闭 epoll
poller/epoll.go:73
Method
Connected
Connected 是否已连接
server_std.go:232
Method
Connected
Connected 是否已连接
connection.go:117
Method
ConnectionCount
()
eventloop/eventloop_std.go:11
Method
Context
Context 获取 Context
server_std.go:217
Method
Context
Context 获取 Context
connection.go:102
Function
Debug
Debug provides debug level logging
log/log.go:98
Function
Debugf
Debugf provides debug level logging
log/log.go:103
Method
Del
Del 从kqueue删除fd
poller/kqueue.go:80
Method
Descriptor
Deprecated: Use Msg1.ProtoReflect.Descriptor instead.
example/protobuf/proto/user.pb.go:65
Method
Descriptor
Deprecated: Use Msg2.ProtoReflect.Descriptor instead.
example/protobuf/proto/user.pb.go:121
Method
Descriptor
Deprecated: Use Response.ProtoReflect.Descriptor instead.
example/protobuf/proto/user.pb.go:182
Method
Empty
Empty reports whether the code is empty. Empty code has no any meaning neither app level codes nor other. This method is useful just to check that cod
plugins/websocket/ws/frame.go:109
Method
EnableRead
EnableRead 只注册可读事件
eventloop/eventloop.go:106
Method
EnableRead
EnableRead 修改fd注册事件为可读事件
poller/kqueue.go:111
Method
EnableReadWrite
EnableReadWrite 注册可读可写事件
eventloop/eventloop.go:101
Method
EnableReadWrite
EnableReadWrite 修改fd注册事件为可读可写事件
poller/kqueue.go:95
Method
EnableWrite
EnableWrite 修改fd注册事件为可写事件
poller/epoll.go:124
Method
Error
Error implements error interface.
plugins/websocket/ws/errors.go:130
← previous
next →
101–200 of 368, ranked by callers