MCPcopy Create free account

hub / github.com/Allenxuxu/gev / functions

Functions368 in github.com/Allenxuxu/gev

↓ 1 callersMethodHandleEvent
(fd int, events poller.Event)
eventloop/eventloop.go:22
↓ 1 callersFunctionHandlePing
HandlePing 处理 ping 返回应答信息
plugins/websocket/ws/util/util.go:49
↓ 1 callersFunctionHandlePong
HandlePong 处理 pong 返回应答信息
plugins/websocket/ws/util/util.go:54
↓ 1 callersMethodIsControl
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 callersMethodIsNotUsed
IsNotUsed reports whether the code is predefined in not used range.
plugins/websocket/ws/frame.go:114
↓ 1 callersMethodIsProtocolDefined
IsProtocolDefined reports whether the code is already defined by protocol specification.
plugins/websocket/ws/frame.go:135
↓ 1 callersMethodIsProtocolReserved
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 callersMethodIsProtocolSpec
IsProtocolSpec reports whether the code should be defined by protocol specification.
plugins/websocket/ws/frame.go:130
↓ 1 callersFunctionLog
Log makes use of Logger
log/log.go:65
↓ 1 callersFunctionLogf
Logf makes use of Logger
log/log.go:74
↓ 1 callersMethodLogf
(format string, v ...interface{})
log/log.go:13
↓ 1 callersFunctionNew
New server
example/maxconnection/main.go:20
↓ 1 callersFunctionNew
New server
example/pushmessage/main.go:22
↓ 1 callersFunctionNew
New server
example/bufferlength/main.go:22
↓ 1 callersFunctionNewPingFrame
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 callersFunctionNewPongFrame
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 callersFunctionNewWebSocketServer
NewWebSocketServer 创建 WebSocket Server
benchmarks/websocket/server.go:36
↓ 1 callersMethodOnClose
(c *gev.Connection)
plugins/websocket/wrap.go:15
↓ 1 callersMethodOnConnect
(c *gev.Connection)
plugins/websocket/wrap.go:13
↓ 1 callersMethodOnMessage
(c *gev.Connection, msg []byte)
plugins/websocket/wrap.go:14
↓ 1 callersFunctionPacket
(data []byte)
example/protocol/client/main.go:13
↓ 1 callersMethodPacketBuf
PacketBuf 内部使用,临时缓冲区
eventloop/eventloop.go:71
↓ 1 callersFunctionParseCloseFrameData
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 callersMethodPop
()
benchmark_load_balance_test.go:19
↓ 1 callersFunctionPutCloseFrameBody
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 callersMethodReadBufferLength
ReadBufferLength read buffer 当前积压的数据长度
server_std.go:288
↓ 1 callersFunctionRejectionHeader
RejectionHeader returns an option that makes connection to be rejected with given HTTP headers.
plugins/websocket/ws/errors.go:103
↓ 1 callersMethodRun
Run 启动事件循环
eventloop/eventloop.go:111
↓ 1 callersMethodRunAfter
RunAfter 延时任务
server.go:71
↓ 1 callersFunctionSendInLoop
(f SendInLoopFunc)
connection_options.go:11
↓ 1 callersMethodStart
Start server
example/maxconnection/main.go:34
↓ 1 callersMethodStart
Start server
example/bufferlength/main.go:36
↓ 1 callersMethodStop
Stop 关闭 Server
server_std.go:116
↓ 1 callersMethodStop
Stop server
example/maxconnection/main.go:39
↓ 1 callersMethodStop
Stop server
example/bufferlength/main.go:42
↓ 1 callersMethodStop
Stop 关闭事件循环
eventloop/eventloop.go:116
↓ 1 callersFunctionUnPacket
(c net.Conn)
example/protocol/client/main.go:21
↓ 1 callersMethodUnPacket
UnPacket 拆包
protocol.go:19
↓ 1 callersMethodUpgrade
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 callersFunctionVirtualReadHeader
VirtualReadHeader reads a frame header from r.
plugins/websocket/ws/read.go:19
↓ 1 callersMethodWake
Wake 唤醒 kqueue
poller/kqueue.go:45
↓ 1 callersFunctionbsplit3
(bts []byte, sep byte)
plugins/websocket/ws/util.go:40
↓ 1 callersFunctionbtsSelectExtensions
(h []byte, selected []httphead.Option, check func(httphead.Option) bool)
plugins/websocket/ws/http.go:155
↓ 1 callersFunctionbtsSelectProtocol
(h []byte, check func([]byte) bool)
plugins/websocket/ws/http.go:140
↓ 1 callersFunctioncanonicalizeHeaderKey
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 callersMethodcloseTimeoutConn
()
server_std.go:431
↓ 1 callersMethodcloseTimeoutConn
()
connection.go:86
↓ 1 callersMethoddoPendingFunc
()
server_std.go:383
↓ 1 callersMethoddoPendingFunc
()
eventloop/eventloop.go:155
↓ 1 callersFunctionfile_proto_user_proto_init
()
example/protobuf/proto/user.pb.go:237
↓ 1 callersMethodhandleRead
(fd int)
connection.go:220
↓ 1 callersMethodhandleWrite
(fd int)
connection.go:253
↓ 1 callersMethodhandlerProtocol
(tmpBuffer *[]byte, buffer *ringbuffer.RingBuffer)
server_std.go:419
↓ 1 callersFunctionhttpParseHeaderLine
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 callersFunctionhttpParseRequestLine
httpParseRequestLine parses http request line like "GET / HTTP/1.0".
plugins/websocket/ws/http.go:77
↓ 1 callersFunctionhttpParseVersion
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 callersFunctionhttpWriteHeader
(bw *bufio.Writer, key, value string)
plugins/websocket/ws/http.go:163
↓ 1 callersFunctionhttpWriteResponseError
(err error, code int, header HandshakeHeaderFunc)
plugins/websocket/ws/http.go:202
↓ 1 callersFunctionhttpWriteResponseUpgrade
(nonce []byte, hs Handshake, header HandshakeHeaderFunc)
plugins/websocket/ws/http.go:174
↓ 1 callersFunctioninitAcceptFromNonce
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 callersFunctionloopBoardcast
(serv *example)
example/websocket/main.go:129
↓ 1 callersFunctionmin
(data IntHeap)
benchmark_load_balance_test.go:46
↓ 1 callersFunctionnewListener
newListener 创建Listener
listener.go:30
↓ 1 callersFunctionnewTmpConnection
()
protocol_test.go:33
↓ 1 callersFunctionpow
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 callersMethodreadLoop
()
server_std.go:302
↓ 1 callersMethodreset
()
context.go:34
↓ 1 callersMethodsendInLoop
(data []byte)
server_std.go:396
↓ 1 callersFunctionsockAddrToString
(sa unix.Sockaddr)
connection.go:330
↓ 1 callersFunctionstartClient
(network, addr string)
server_test.go:70
↓ 1 callersFunctionstartWebSocketClient
(addr string)
example/websocket/wsserver_test.go:101
↓ 1 callersFunctionstartWebSocketClient
(startC chan interface{}, closeC chan interface{}, result, req chan int64)
benchmarks/websocket/client/main.go:54
↓ 1 callersMethodwakeHandlerRead
()
poller/epoll.go:65
↓ 1 callersFunctionwriteAccept
(bw *bufio.Writer, nonce []byte)
plugins/websocket/ws/nonce.go:41
↓ 1 callersMethodwriteLoop
()
server_std.go:340
MethodAddRead
AddRead 注册fd到kqueue并注册可读事件
poller/kqueue.go:71
MethodAddWrite
AddWrite 注册fd到epoll,并注册可写事件
poller/epoll.go:102
FunctionBenchmarkHeap
(b *testing.B)
benchmark_load_balance_test.go:37
FunctionBenchmarkMin
(b *testing.B)
benchmark_load_balance_test.go:57
MethodClose
()
listener.go:99
MethodClose
Close 关闭 kqueue
poller/kqueue.go:55
MethodClose
Close 关闭 epoll
poller/epoll.go:73
MethodConnected
Connected 是否已连接
server_std.go:232
MethodConnected
Connected 是否已连接
connection.go:117
MethodConnectionCount
()
eventloop/eventloop_std.go:11
MethodContext
Context 获取 Context
server_std.go:217
MethodContext
Context 获取 Context
connection.go:102
FunctionDebug
Debug provides debug level logging
log/log.go:98
FunctionDebugf
Debugf provides debug level logging
log/log.go:103
MethodDel
Del 从kqueue删除fd
poller/kqueue.go:80
MethodDescriptor
Deprecated: Use Msg1.ProtoReflect.Descriptor instead.
example/protobuf/proto/user.pb.go:65
MethodDescriptor
Deprecated: Use Msg2.ProtoReflect.Descriptor instead.
example/protobuf/proto/user.pb.go:121
MethodDescriptor
Deprecated: Use Response.ProtoReflect.Descriptor instead.
example/protobuf/proto/user.pb.go:182
MethodEmpty
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
MethodEnableRead
EnableRead 只注册可读事件
eventloop/eventloop.go:106
MethodEnableRead
EnableRead 修改fd注册事件为可读事件
poller/kqueue.go:111
MethodEnableReadWrite
EnableReadWrite 注册可读可写事件
eventloop/eventloop.go:101
MethodEnableReadWrite
EnableReadWrite 修改fd注册事件为可读可写事件
poller/kqueue.go:95
MethodEnableWrite
EnableWrite 修改fd注册事件为可写事件
poller/epoll.go:124
MethodError
Error implements error interface.
plugins/websocket/ws/errors.go:130
← previousnext →101–200 of 368, ranked by callers