MCPcopy Create free account

hub / github.com/panjf2000/gnet / functions

Functions759 in github.com/panjf2000/gnet

MethodClose
Close closes the given Conn that belongs to the current event-loop. It must be called on the same event-loop that the connection belongs to. This meth
gnet.go:420
MethodClose
()
connection_windows.go:530
MethodClose
(c Conn)
eventloop_windows.go:78
MethodClose
()
connection_unix.go:543
MethodClose
Close closes the poller.
pkg/netpoll/poller_kqueue_ultimate.go:64
MethodClose
Close closes the poller.
pkg/netpoll/poller_epoll_ultimate.go:73
MethodClose
Close closes the poller.
pkg/netpoll/poller_epoll_default.go:72
MethodClose
Close closes the poller.
pkg/netpoll/poller_kqueue_default.go:63
MethodCloseWithCallback
(cb AsyncCallback)
connection_windows.go:547
MethodCloseWithCallback
(callback AsyncCallback)
connection_unix.go:533
FunctionClosestPowerOfTwo
ClosestPowerOfTwo returns n if it is a power-of-two, otherwise the closest power-of-two.
pkg/math/math.go:58
MethodContext
()
connection_windows.go:299
MethodContext
()
connection_unix.go:464
MethodDelete
Delete removes the given file descriptor from the poller.
pkg/netpoll/poller_kqueue_ultimate.go:235
MethodDelete
Delete removes the given file descriptor from the poller.
pkg/netpoll/poller_epoll_ultimate.go:246
MethodDelete
Delete removes the given file descriptor from the poller.
pkg/netpoll/poller_kqueue_default.go:222
MethodDequeue
Dequeue removes and returns the value at the head of the queue. It returns nil if the queue is empty.
pkg/queue/lock_free_queue.go:129
MethodDiscard
(n int)
connection_windows.go:198
MethodDiscard
(n int)
connection_unix.go:381
MethodDiscard
Discard skips the next n bytes by advancing the read pointer.
pkg/buffer/ring/ring_buffer.go:126
MethodDiscard
Discard discards n bytes in this buffer.
pkg/buffer/elastic/elastic_ring_list_buffer.go:70
MethodDiscard
Discard skips the next n bytes by advancing the read pointer.
pkg/buffer/elastic/elastic_ring_buffer.go:63
MethodDiscard
Discard removes some nodes based on n bytes.
pkg/buffer/linkedlist/linked_list_buffer.go:176
MethodDup
Dup returns a copy of the underlying file descriptor of listener. It is the caller's responsibility to close dupFD when finished. Closing listener doe
gnet.go:119
MethodDup
()
connection_windows.go:321
MethodDup
()
connection_unix.go:474
MethodEncodeEntry
(entry zapcore.Entry, fields []zapcore.Field)
pkg/logging/logger.go:133
MethodEnqueue
Enqueue puts the given value v at the tail of the queue.
pkg/queue/lock_free_queue.go:104
MethodEnroll
Enroll converts a net.Conn to gnet.Conn and then adds it into the Client.
client_unix.go:194
MethodEnroll
(ctx context.Context, c net.Conn)
eventloop_unix.go:62
MethodEnroll
(nc net.Conn)
client_windows.go:136
MethodEnroll
(ctx context.Context, c net.Conn)
eventloop_windows.go:50
MethodEventLoop
()
connection_windows.go:568
MethodEventLoop
()
connection_unix.go:550
FunctionExample
()
pkg/netpoll/example_test.go:31
MethodExecute
(ctx context.Context, runnable Runnable)
eventloop_unix.go:72
MethodExecute
(ctx context.Context, runnable Runnable)
eventloop_windows.go:60
MethodFd
Implementation of Socket interface func (c *conn) Gfd() gfd.GFD { return c.gfd }
connection_unix.go:473
FunctionFloorToPowerOfTwo
FloorToPowerOfTwo returns n if it is a power-of-two, otherwise the next-highest power-of-two.
pkg/math/math.go:43
MethodFlush
()
connection_windows.go:284
MethodFlush
()
connection_unix.go:452
MethodFreeNode
FreeNode puts the given []byte back to the pool to free the memory.
pkg/buffer/linkedlist/linked_list_buffer.go:74
FunctionGet
Get returns an empty byte buffer from the pool. Got byte buffer may be returned to the pool via Put call. This reduces the number of memory allocatio
pkg/pool/ringbuffer/ringbuffer.go:66
MethodInboundBuffered
()
connection_windows.go:288
MethodInboundBuffered
()
connection_unix.go:456
MethodIsEmpty
IsEmpty indicates whether this queue is empty or not.
pkg/queue/lock_free_queue.go:156
MethodIsEmpty
IsEmpty tells if this ring-buffer is empty.
pkg/buffer/ring/ring_buffer.go:477
MethodIsEmpty
IsEmpty indicates whether this buffer is empty.
pkg/buffer/elastic/elastic_ring_list_buffer.go:159
MethodIsEmpty
IsEmpty tells if this ring-buffer is empty.
pkg/buffer/elastic/elastic_ring_buffer.go:192
FunctionIsErrorEvent
IsErrorEvent checks if the event is an error event.
pkg/netpoll/defs_poller_kqueue.go:51
MethodIsFull
IsFull tells if this ring-buffer is full.
pkg/buffer/elastic/elastic_ring_buffer.go:184
FunctionIsPowerOfTwo
IsPowerOfTwo reports whether the given n is a power of two.
pkg/math/math.go:26
FunctionIsReadEvent
IsReadEvent checks if the event is a read event.
pkg/netpoll/defs_poller_kqueue.go:41
FunctionIsWriteEvent
IsWriteEvent checks if the event is a write event.
pkg/netpoll/defs_poller_kqueue.go:46
MethodLength
Length returns the number of elements in the queue.
pkg/queue/lock_free_queue.go:161
MethodLess
(i, j int)
pkg/pool/ringbuffer/ringbuffer.go:153
MethodLocalAddr
()
connection_windows.go:301
MethodLocalAddr
()
connection_unix.go:466
MethodModRead
ModRead modifies the given file descriptor with readable event in the poller.
pkg/netpoll/poller_kqueue_ultimate.go:211
MethodModRead
ModRead modifies the given file descriptor with readable event in the poller.
pkg/netpoll/poller_epoll_ultimate.go:224
MethodModRead
ModRead modifies the given file descriptor with readable event in the poller.
pkg/netpoll/poller_kqueue_default.go:202
MethodModReadWrite
ModReadWrite modifies the given file descriptor with readable and writable events in the poller.
pkg/netpoll/poller_kqueue_ultimate.go:221
MethodModReadWrite
ModReadWrite modifies the given file descriptor with readable and writable events in the poller.
pkg/netpoll/poller_epoll_ultimate.go:235
MethodModReadWrite
ModReadWrite modifies the given file descriptor with readable and writable events in the poller.
pkg/netpoll/poller_kqueue_default.go:210
FunctionNewClient
(eh EventHandler, opts ...Option)
client_windows.go:33
MethodNext
(n int)
connection_windows.go:153
MethodNext
(n int)
connection_unix.go:333
MethodOnBoot
(eng Engine)
gnet_test.go:560
MethodOnBoot
(_ Engine)
gnet_test.go:889
MethodOnBoot
(eng Engine)
gnet_test.go:1031
MethodOnBoot
(eng Engine)
gnet_test.go:1403
MethodOnBoot
(eng Engine)
gnet_test.go:1470
MethodOnBoot
(eng Engine)
gnet_test.go:1569
MethodOnBoot
(_ Engine)
gnet_test.go:1624
MethodOnBoot
(eng Engine)
gnet_test.go:1756
MethodOnBoot
(_ Engine)
gnet_test.go:2039
MethodOnBoot
(eng Engine)
gnet_test.go:2512
MethodOnBoot
(Engine)
gnet_test.go:2760
MethodOnBoot
(eng Engine)
eventloop_unix_test.go:129
MethodOnBoot
(eng Engine)
eventloop_unix_test.go:252
MethodOnBoot
(e Engine)
client_test.go:38
MethodOnBoot
(eng Engine)
client_test.go:381
MethodOnBoot
(_ Engine)
client_test.go:593
MethodOnBoot
(Engine)
client_test.go:779
MethodOnClose
(c Conn, err error)
gnet_test.go:621
MethodOnClose
(Conn, error)
gnet_test.go:961
MethodOnClose
(Conn, error)
gnet_test.go:1041
MethodOnClose
(Conn, error)
gnet_test.go:1096
MethodOnClose
(Conn, error)
gnet_test.go:1201
MethodOnClose
(Conn, error)
gnet_test.go:1337
MethodOnClose
(Conn, error)
gnet_test.go:1408
MethodOnClose
(Conn, error)
gnet_test.go:1475
MethodOnClose
(Conn, error)
gnet_test.go:1611
MethodOnClose
(_ Conn, err error)
gnet_test.go:1770
MethodOnClose
(c Conn, err error)
gnet_test.go:2264
MethodOnClose
(c Conn, _ error)
gnet_test.go:2855
MethodOnClose
(Conn, error)
client_test.go:58
MethodOnClose
(c Conn, err error)
client_test.go:394
MethodOnClose
(_ Conn, _ error)
client_test.go:648
MethodOnClose
(Conn, error)
client_test.go:787
← previousnext →401–500 of 759, ranked by callers