Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/panjf2000/gnet
/ functions
Functions
759 in github.com/panjf2000/gnet
⨍
Functions
759
◇
Types & classes
122
Method
Schedule
(context.Context, Runnable, time.Duration)
eventloop_windows.go:74
Method
SendTo
(p []byte, addr net.Addr)
connection_windows.go:235
Method
SendTo
(p []byte, addr net.Addr)
connection_unix.go:415
Function
SetBindToDevice
SetBindToDevice is not implemented on macOS because there is no equivalent of Linux's SO_BINDTODEVICE.
pkg/socket/sockopts_darwin.go:75
Function
SetBindToDevice
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
Function
SetBindToDevice
SetBindToDevice is not implemented on *BSD because there is no equivalent of Linux's SO_BINDTODEVICE.
pkg/socket/sockopts_bsd.go:23
Method
SetContext
(ctx any)
connection_windows.go:300
Method
SetContext
(ctx any)
connection_unix.go:465
Method
SetDeadline
(_ time.Time)
connection_windows.go:572
Method
SetDeadline
(_ time.Time)
connection_unix.go:554
Function
SetKeepAlive
SetKeepAlive is not implemented on OpenBSD.
pkg/socket/sockopts_openbsd.go:27
Method
SetKeepAlive
(enabled bool, idle, intvl time.Duration, cnt int)
connection_unix.go:494
Function
SetKeepAlivePeriod
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
Function
SetKeepAlivePeriod
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
Method
SetKeepAlivePeriod
(d time.Duration)
connection_windows.go:412
Method
SetKeepAlivePeriod
(d time.Duration)
connection_unix.go:487
Method
SetLinger
(sec int)
connection_windows.go:388
Method
SetLinger
(sec int)
connection_unix.go:477
Method
SetNoDelay
(noDelay bool)
connection_windows.go:400
Method
SetNoDelay
(noDelay bool)
connection_unix.go:478
Method
SetReadBuffer
(bytes int)
connection_windows.go:367
Method
SetReadBuffer
(bytes int)
connection_unix.go:475
Method
SetReadDeadline
(_ time.Time)
connection_windows.go:576
Method
SetReadDeadline
(_ time.Time)
connection_unix.go:558
Function
SetReuseAddr
SetReuseAddr enables SO_REUSEADDR option on socket.
pkg/socket/sockopts_posix.go:51
Function
SetReuseport
SetReuseport enables SO_REUSEPORT_LB option on socket.
pkg/socket/sockopts_freebsd.go:27
Function
SetReuseport
SetReuseport enables SO_REUSEPORT option on socket.
pkg/socket/sockopts_unix1.go:26
Method
SetSafeContext
(ctx any)
connection_unix.go:573
Method
SetWriteBuffer
(bytes int)
connection_windows.go:378
Method
SetWriteBuffer
(bytes int)
connection_unix.go:476
Method
SetWriteDeadline
(_ time.Time)
connection_windows.go:580
Method
SetWriteDeadline
(_ time.Time)
connection_unix.go:562
Method
Start
()
client_windows.go:66
Function
Stop
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
Method
Stop
()
client_windows.go:100
Method
Swap
(i, j int)
pkg/pool/ringbuffer/ringbuffer.go:157
Function
TestBadAddresses
(t *testing.T)
gnet_test.go:893
Function
TestBindToDevice
(t *testing.T)
os_unix_test.go:319
Function
TestByteSlice
(t *testing.T)
pkg/pool/byteslice/byteslice_test.go:8
Function
TestCeilToPowerOfTwo
(t *testing.T)
pkg/math/math_test.go:5
Function
TestClient
(t *testing.T)
client_test.go:101
Function
TestClientReadOnEOF
(t *testing.T)
client_test.go:703
Function
TestClientSafeContext
TestClientSafeContext verifies that a client-side Conn's SafeContext()/ SetSafeContext() behave correctly on connections created via Client.Dial/DialC
client_test.go:807
Function
TestCloseActionError
(t *testing.T)
gnet_test.go:1085
Function
TestCloseActionOnOpen
(t *testing.T)
gnet_test.go:1185
Function
TestCloseConnection
(t *testing.T)
gnet_test.go:1326
Function
TestClosedWakeUp
Test should not panic when we wake up server_closed conn.
gnet_test.go:1546
Function
TestConnMatrix
(t *testing.T)
conn_matrix_test.go:17
Function
TestDefaultGnetServer
(*testing.T)
gnet_test.go:876
Function
TestDisconnectedAsyncWrite
(t *testing.T)
gnet_test.go:1725
Function
TestEngineStop
(t *testing.T)
gnet_test.go:1456
Function
TestLinkedListBuffer_Basic
(t *testing.T)
pkg/buffer/linkedlist/llbuffer_test.go:12
Function
TestLinkedListBuffer_ReadFrom
(t *testing.T)
pkg/buffer/linkedlist/llbuffer_test.go:70
Function
TestLinkedListBuffer_WriteTo
(t *testing.T)
pkg/buffer/linkedlist/llbuffer_test.go:104
Function
TestLockFreeQueue
(t *testing.T)
pkg/queue/queue_test.go:11
Function
TestMixedBuffer_Basic
(t *testing.T)
pkg/buffer/elastic/elastic_buffer_test.go:13
Function
TestMixedBuffer_ReadFrom
(t *testing.T)
pkg/buffer/elastic/elastic_buffer_test.go:107
Function
TestMixedBuffer_WriteTo
(t *testing.T)
pkg/buffer/elastic/elastic_buffer_test.go:150
Function
TestMultiInstLoggerRace
(t *testing.T)
gnet_test.go:1628
Function
TestMulticastBindIPv4
(t *testing.T)
os_unix_test.go:175
Function
TestMulticastBindIPv6
(t *testing.T)
os_unix_test.go:185
Function
TestRingBufferGrow
(t *testing.T)
pkg/buffer/ring/ring_buffer_test.go:121
Function
TestRingBuffer_ByteInterface
(t *testing.T)
pkg/buffer/ring/ring_buffer_test.go:246
Function
TestRingBuffer_Read
(t *testing.T)
pkg/buffer/ring/ring_buffer_test.go:180
Function
TestRingBuffer_ReadFrom
(t *testing.T)
pkg/buffer/ring/ring_buffer_test.go:305
Function
TestRingBuffer_Write
(t *testing.T)
pkg/buffer/ring/ring_buffer_test.go:13
Function
TestRingBuffer_WriteTo
(t *testing.T)
pkg/buffer/ring/ring_buffer_test.go:382
Function
TestSafeContext
TestSafeContext verifies that Conn.SafeContext()/SetSafeContext() behave correctly: the value set is always the value retrieved, mixing different conc
gnet_test.go:2741
Function
TestServeGC
TestServeGC generate fake data asynchronously, if you need to test, manually open the comment.
eventloop_unix_test.go:141
Function
TestServeMulticast
NOTE: TestServeMulticast can fail with "write: no buffer space available" on Wi-Fi interface.
os_unix_test.go:31
Function
TestServer
(t *testing.T)
gnet_test.go:62
Function
TestServerOptionsCheck
(t *testing.T)
gnet_test.go:1386
Function
TestShutdown
(t *testing.T)
gnet_test.go:1016
Function
TestShutdownActionError
(t *testing.T)
gnet_test.go:1140
Function
TestShutdownActionOnOpen
(t *testing.T)
gnet_test.go:1228
Function
TestSimServer
(t *testing.T)
gnet_test.go:1913
Function
TestStopServer
(t *testing.T)
gnet_test.go:1391
Function
TestStreamProxyServer
(t *testing.T)
gnet_test.go:2324
Function
TestTick
(t *testing.T)
gnet_test.go:911
Function
TestUDPProxyServer
(t *testing.T)
gnet_test.go:2619
Function
TestUDPSendtoServer
(t *testing.T)
gnet_test.go:2098
Function
TestUDPShutdown
(t *testing.T)
gnet_test.go:1279
Function
TestWakeConn
(t *testing.T)
gnet_test.go:942
Function
TestWakeConnImmediately
(t *testing.T)
client_test.go:675
Function
TestZeroRingBuffer
(t *testing.T)
pkg/buffer/ring/ring_buffer_test.go:101
Method
Trigger
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
Method
Trigger
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
Method
Trigger
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
Method
Validate
Validate checks if the GFD is valid.
internal/gfd/gfd.go:84
Method
Wake
(cb AsyncCallback)
connection_windows.go:509
Method
Wake
(callback AsyncCallback)
connection_unix.go:523
Method
WriteByte
WriteByte writes one byte into buffer.
pkg/buffer/elastic/elastic_ring_buffer.go:116
Method
WriteString
WriteString writes the contents of the string s to buffer, which accepts a slice of bytes.
pkg/buffer/elastic/elastic_ring_buffer.go:153
Method
WriteTo
WriteTo implements io.WriterTo.
pkg/buffer/elastic/elastic_ring_list_buffer.go:143
Function
Writev
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
Function
Writev
Writev calls writev() on Linux.
pkg/io/io_linux.go:23
Method
Writev
(bs [][]byte)
connection_windows.go:247
Method
Writev
(bs [][]byte)
connection_unix.go:428
Method
Writev
Writev appends multiple byte slices to this buffer.
pkg/buffer/elastic/elastic_ring_list_buffer.go:101
Method
accept0
(fd int, _ netpoll.IOEvent, _ netpoll.IOFlags)
acceptor_unix.go:30
← previous
next →
601–700 of 759, ranked by callers