MCPcopy Create free account

hub / github.com/panjf2000/gnet / functions

Functions759 in github.com/panjf2000/gnet

MethodSchedule
(context.Context, Runnable, time.Duration)
eventloop_windows.go:74
MethodSendTo
(p []byte, addr net.Addr)
connection_windows.go:235
MethodSendTo
(p []byte, addr net.Addr)
connection_unix.go:415
FunctionSetBindToDevice
SetBindToDevice is not implemented on macOS because there is no equivalent of Linux's SO_BINDTODEVICE.
pkg/socket/sockopts_darwin.go:75
FunctionSetBindToDevice
SetBindToDevice binds the socket to a specific network interface. SO_BINDTODEVICE on Linux works in both directions: only process packets received fr
pkg/socket/sockopts_linux.go:28
FunctionSetBindToDevice
SetBindToDevice is not implemented on *BSD because there is no equivalent of Linux's SO_BINDTODEVICE.
pkg/socket/sockopts_bsd.go:23
MethodSetContext
(ctx any)
connection_windows.go:300
MethodSetContext
(ctx any)
connection_unix.go:465
MethodSetDeadline
(_ time.Time)
connection_windows.go:572
MethodSetDeadline
(_ time.Time)
connection_unix.go:554
FunctionSetKeepAlive
SetKeepAlive is not implemented on OpenBSD.
pkg/socket/sockopts_openbsd.go:27
MethodSetKeepAlive
(enabled bool, idle, intvl time.Duration, cnt int)
connection_unix.go:494
FunctionSetKeepAlivePeriod
SetKeepAlivePeriod enables the SO_KEEPALIVE option on the socket and sets TCP_KEEPIDLE/TCP_KEEPALIVE to the specified duration in seconds, TCP_KEEPCNT
pkg/socket/sockopts_unix.go:29
FunctionSetKeepAlivePeriod
SetKeepAlivePeriod is not implemented on OpenBSD because there are no equivalents of Linux's TCP_KEEPIDLE, TCP_KEEPINTVL, and TCP_KEEPCNT.
pkg/socket/sockopts_openbsd.go:21
MethodSetKeepAlivePeriod
(d time.Duration)
connection_windows.go:412
MethodSetKeepAlivePeriod
(d time.Duration)
connection_unix.go:487
MethodSetLinger
(sec int)
connection_windows.go:388
MethodSetLinger
(sec int)
connection_unix.go:477
MethodSetNoDelay
(noDelay bool)
connection_windows.go:400
MethodSetNoDelay
(noDelay bool)
connection_unix.go:478
MethodSetReadBuffer
(bytes int)
connection_windows.go:367
MethodSetReadBuffer
(bytes int)
connection_unix.go:475
MethodSetReadDeadline
(_ time.Time)
connection_windows.go:576
MethodSetReadDeadline
(_ time.Time)
connection_unix.go:558
FunctionSetReuseAddr
SetReuseAddr enables SO_REUSEADDR option on socket.
pkg/socket/sockopts_posix.go:51
FunctionSetReuseport
SetReuseport enables SO_REUSEPORT_LB option on socket.
pkg/socket/sockopts_freebsd.go:27
FunctionSetReuseport
SetReuseport enables SO_REUSEPORT option on socket.
pkg/socket/sockopts_unix1.go:26
MethodSetSafeContext
(ctx any)
connection_unix.go:573
MethodSetWriteBuffer
(bytes int)
connection_windows.go:378
MethodSetWriteBuffer
(bytes int)
connection_unix.go:476
MethodSetWriteDeadline
(_ time.Time)
connection_windows.go:580
MethodSetWriteDeadline
(_ time.Time)
connection_unix.go:562
MethodStart
()
client_windows.go:66
FunctionStop
Stop gracefully shuts down the engine without interrupting any active event-loops, it waits indefinitely for connections and event-loops to be closed
gnet.go:734
MethodStop
()
client_windows.go:100
MethodSwap
(i, j int)
pkg/pool/ringbuffer/ringbuffer.go:157
FunctionTestBadAddresses
(t *testing.T)
gnet_test.go:893
FunctionTestBindToDevice
(t *testing.T)
os_unix_test.go:319
FunctionTestByteSlice
(t *testing.T)
pkg/pool/byteslice/byteslice_test.go:8
FunctionTestCeilToPowerOfTwo
(t *testing.T)
pkg/math/math_test.go:5
FunctionTestClient
(t *testing.T)
client_test.go:101
FunctionTestClientReadOnEOF
(t *testing.T)
client_test.go:703
FunctionTestClientSafeContext
TestClientSafeContext verifies that a client-side Conn's SafeContext()/ SetSafeContext() behave correctly on connections created via Client.Dial/DialC
client_test.go:807
FunctionTestCloseActionError
(t *testing.T)
gnet_test.go:1085
FunctionTestCloseActionOnOpen
(t *testing.T)
gnet_test.go:1185
FunctionTestCloseConnection
(t *testing.T)
gnet_test.go:1326
FunctionTestClosedWakeUp
Test should not panic when we wake up server_closed conn.
gnet_test.go:1546
FunctionTestConnMatrix
(t *testing.T)
conn_matrix_test.go:17
FunctionTestDefaultGnetServer
(*testing.T)
gnet_test.go:876
FunctionTestDisconnectedAsyncWrite
(t *testing.T)
gnet_test.go:1725
FunctionTestEngineStop
(t *testing.T)
gnet_test.go:1456
FunctionTestLinkedListBuffer_Basic
(t *testing.T)
pkg/buffer/linkedlist/llbuffer_test.go:12
FunctionTestLinkedListBuffer_ReadFrom
(t *testing.T)
pkg/buffer/linkedlist/llbuffer_test.go:70
FunctionTestLinkedListBuffer_WriteTo
(t *testing.T)
pkg/buffer/linkedlist/llbuffer_test.go:104
FunctionTestLockFreeQueue
(t *testing.T)
pkg/queue/queue_test.go:11
FunctionTestMixedBuffer_Basic
(t *testing.T)
pkg/buffer/elastic/elastic_buffer_test.go:13
FunctionTestMixedBuffer_ReadFrom
(t *testing.T)
pkg/buffer/elastic/elastic_buffer_test.go:107
FunctionTestMixedBuffer_WriteTo
(t *testing.T)
pkg/buffer/elastic/elastic_buffer_test.go:150
FunctionTestMultiInstLoggerRace
(t *testing.T)
gnet_test.go:1628
FunctionTestMulticastBindIPv4
(t *testing.T)
os_unix_test.go:175
FunctionTestMulticastBindIPv6
(t *testing.T)
os_unix_test.go:185
FunctionTestRingBufferGrow
(t *testing.T)
pkg/buffer/ring/ring_buffer_test.go:121
FunctionTestRingBuffer_ByteInterface
(t *testing.T)
pkg/buffer/ring/ring_buffer_test.go:246
FunctionTestRingBuffer_Read
(t *testing.T)
pkg/buffer/ring/ring_buffer_test.go:180
FunctionTestRingBuffer_ReadFrom
(t *testing.T)
pkg/buffer/ring/ring_buffer_test.go:305
FunctionTestRingBuffer_Write
(t *testing.T)
pkg/buffer/ring/ring_buffer_test.go:13
FunctionTestRingBuffer_WriteTo
(t *testing.T)
pkg/buffer/ring/ring_buffer_test.go:382
FunctionTestSafeContext
TestSafeContext verifies that Conn.SafeContext()/SetSafeContext() behave correctly: the value set is always the value retrieved, mixing different conc
gnet_test.go:2741
FunctionTestServeGC
TestServeGC generate fake data asynchronously, if you need to test, manually open the comment.
eventloop_unix_test.go:141
FunctionTestServeMulticast
NOTE: TestServeMulticast can fail with "write: no buffer space available" on Wi-Fi interface.
os_unix_test.go:31
FunctionTestServer
(t *testing.T)
gnet_test.go:62
FunctionTestServerOptionsCheck
(t *testing.T)
gnet_test.go:1386
FunctionTestShutdown
(t *testing.T)
gnet_test.go:1016
FunctionTestShutdownActionError
(t *testing.T)
gnet_test.go:1140
FunctionTestShutdownActionOnOpen
(t *testing.T)
gnet_test.go:1228
FunctionTestSimServer
(t *testing.T)
gnet_test.go:1913
FunctionTestStopServer
(t *testing.T)
gnet_test.go:1391
FunctionTestStreamProxyServer
(t *testing.T)
gnet_test.go:2324
FunctionTestTick
(t *testing.T)
gnet_test.go:911
FunctionTestUDPProxyServer
(t *testing.T)
gnet_test.go:2619
FunctionTestUDPSendtoServer
(t *testing.T)
gnet_test.go:2098
FunctionTestUDPShutdown
(t *testing.T)
gnet_test.go:1279
FunctionTestWakeConn
(t *testing.T)
gnet_test.go:942
FunctionTestWakeConnImmediately
(t *testing.T)
client_test.go:675
FunctionTestZeroRingBuffer
(t *testing.T)
pkg/buffer/ring/ring_buffer_test.go:101
MethodTrigger
Trigger enqueues task and wakes up the poller to process pending tasks. By default, any incoming task will enqueued into urgentAsyncTaskQueue before t
pkg/netpoll/poller_kqueue_ultimate.go:78
MethodTrigger
Trigger enqueues task and wakes up the poller to process pending tasks. By default, any incoming task will enqueued into urgentAsyncTaskQueue before t
pkg/netpoll/poller_epoll_ultimate.go:91
MethodTrigger
Trigger enqueues task and wakes up the poller to process pending tasks. By default, any incoming task will enqueued into urgentAsyncTaskQueue before t
pkg/netpoll/poller_kqueue_default.go:77
MethodValidate
Validate checks if the GFD is valid.
internal/gfd/gfd.go:84
MethodWake
(cb AsyncCallback)
connection_windows.go:509
MethodWake
(callback AsyncCallback)
connection_unix.go:523
MethodWriteByte
WriteByte writes one byte into buffer.
pkg/buffer/elastic/elastic_ring_buffer.go:116
MethodWriteString
WriteString writes the contents of the string s to buffer, which accepts a slice of bytes.
pkg/buffer/elastic/elastic_ring_buffer.go:153
MethodWriteTo
WriteTo implements io.WriterTo.
pkg/buffer/elastic/elastic_ring_list_buffer.go:143
FunctionWritev
Writev invokes the writev system call directly. Note that SYS_WRITEV is about to be deprecated on Darwin and the Go team suggested to use libSystem w
pkg/io/io_bsd.go:30
FunctionWritev
Writev calls writev() on Linux.
pkg/io/io_linux.go:23
MethodWritev
(bs [][]byte)
connection_windows.go:247
MethodWritev
(bs [][]byte)
connection_unix.go:428
MethodWritev
Writev appends multiple byte slices to this buffer.
pkg/buffer/elastic/elastic_ring_list_buffer.go:101
Methodaccept0
(fd int, _ netpoll.IOEvent, _ netpoll.IOFlags)
acceptor_unix.go:30
← previousnext →601–700 of 759, ranked by callers