MCPcopy Create free account

hub / github.com/panjf2000/gnet / functions

Functions759 in github.com/panjf2000/gnet

↓ 1 callersFunctionSetIPv4MulticastMembership
SetIPv4MulticastMembership joins fd to the specified multicast IPv4 address. ifIndex is the index of the interface where the multicast datagrams will
pkg/socket/sockopts_posix.go:110
↓ 1 callersFunctionSetIPv6MulticastMembership
SetIPv6MulticastMembership joins fd to the specified multicast IPv6 address. ifIndex is the index of the interface where the multicast datagrams will
pkg/socket/sockopts_posix.go:137
↓ 1 callersFunctionSetKeepAlive
SetKeepAlive enables/disables the TCP keepalive feature on the socket.
pkg/socket/sockopts_unix.go:43
↓ 1 callersMethodSetKeepAlive
(enabled bool, idle, intvl time.Duration, cnt int)
connection_windows.go:416
↓ 1 callersFunctionSetKeepAlivePeriod
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_darwin.go:29
↓ 1 callersFunctionSetLinger
SetLinger sets the behavior of Close on a connection which still has data waiting to be sent or to be acknowledged. If sec < 0 (the default), the ope
pkg/socket/sockopts_posix.go:72
↓ 1 callersFunctionSetMulticastMembership
SetMulticastMembership returns with a socket option function based on the IP version. Returns nil when multicast membership cannot be applied.
pkg/socket/sockopts_posix.go:86
↓ 1 callersMethodSetReadDeadline
SetReadDeadline implements net.Conn.
gnet.go:476
↓ 1 callersMethodSetSafeContext
(ctx any)
connection_windows.go:591
↓ 1 callersMethodSetWriteDeadline
SetWriteDeadline implements net.Conn.
gnet.go:479
↓ 1 callersFunctionSockaddrToUDPAddr
SockaddrToUDPAddr converts a unix.Sockaddr to a net.UDPAddr Returns nil if conversion fails.
pkg/socket/sockaddr.go:128
↓ 1 callersFunctionTCPAddrToSockaddr
TCPAddrToSockaddr converts a net.TCPAddr to a Sockaddr. Returns nil if conversion fails.
pkg/socket/sockaddr.go:56
↓ 1 callersFunctionTCPSocket
TCPSocket creates a TCP socket and returns a file descriptor that refers to it. The given socket options will be set on the returned file descriptor.
pkg/socket/socket.go:44
↓ 1 callersFunctionUDPAddrToSockaddr
UDPAddrToSockaddr converts a net.UDPAddr to a Sockaddr. Returns nil if conversion fails.
pkg/socket/sockaddr.go:62
↓ 1 callersFunctionUDPSocket
UDPSocket creates a UDP socket and returns a file descriptor that refers to it. The given socket options will be set on the returned file descriptor.
pkg/socket/socket.go:50
↓ 1 callersFunctionUnixAddrToSockaddr
UnixAddrToSockaddr converts a net.UnixAddr to a Sockaddr, and returns the type (unix.SOCK_STREAM, unix.SOCK_DGRAM, unix.SOCK_SEQPACKET) Returns (nil,
pkg/socket/sockaddr.go:97
↓ 1 callersFunctionUnixSocket
UnixSocket creates a Unix socket and returns a file descriptor that refers to it. The given socket options will be set on the returned file descriptor
pkg/socket/socket.go:56
↓ 1 callersMethodUnpack
(buf []byte)
gnet_test.go:1894
↓ 1 callersMethodUpdateIndexes
UpdateIndexes updates the connStore indexes.
internal/gfd/gfd.go:78
↓ 1 callersFunctionWithOptions
WithOptions sets up all options.
options.go:163
↓ 1 callersMethodWriteTo
WriteTo implements io.WriterTo.
pkg/buffer/elastic/elastic_ring_buffer.go:174
↓ 1 callersMethodaccept
(fd int, ev netpoll.IOEvent, flags netpoll.IOFlags)
acceptor_unix.go:77
↓ 1 callersMethodactivateReactors
(ctx context.Context, numEventLoop int)
engine_unix.go:137
↓ 1 callersFunctionbatchSendAndRecv
(t *testing.T, c net.Conn, rd *bufio.Reader, packetSize, batch int)
gnet_test.go:1996
↓ 1 callersMethodcalibrate
()
pkg/pool/ringbuffer/ringbuffer.go:103
↓ 1 callersMethodcloseEventLoops
()
engine_windows.go:57
↓ 1 callersFunctiondetectLinuxEthernetInterfaceName
()
os_unix_test.go:195
↓ 1 callersFunctiondetermineTCPProto
(proto string, addr *net.TCPAddr)
pkg/socket/tcp_socket.go:63
↓ 1 callersFunctiondtoi
Decimal to integer starting at &s[i0]. Returns number, new offset, success.
pkg/socket/sockaddr.go:183
↓ 1 callersFunctiondupCloseOnExec
dupCloseOnExec duplicates the given fd and marks it close-on-exec.
pkg/socket/fd_unix.go:40
↓ 1 callersFunctiondupCloseOnExecOld
dupCloseOnExecOld is the traditional way to dup an fd and set its O_CLOEXEC bit, using two system calls.
pkg/socket/fd_unix.go:61
↓ 1 callersFunctionepollWait
(epfd int, events []epollevent, msec int)
pkg/netpoll/syscall_epoll_generic_linux.go:25
↓ 1 callersFunctiongetDevEncoder
()
pkg/logging/logger.go:152
↓ 1 callersFunctiongetProdEncoder
()
pkg/logging/logger.go:163
↓ 1 callersMethodhash
======================================= Implementation of Hash load-balancer ======================================== hash converts a string to a uniq
load_balancer.go:129
↓ 1 callersFunctionindex
(n int)
pkg/pool/ringbuffer/ringbuffer.go:161
↓ 1 callersFunctioninterfaceFirstIPv4Addr
interfaceFirstIPv4Addr returns the first IPv4 address of the interface.
pkg/socket/sockopts_posix.go:155
↓ 1 callersFunctionipToSockaddrInet4
(ip net.IP, port int)
pkg/socket/sock_posix.go:27
↓ 1 callersFunctionipToSockaddrInet6
(ip net.IP, port int, zone string)
pkg/socket/sock_posix.go:40
↓ 1 callersFunctionitod
itod converts uint to a decimal string.
pkg/socket/sockaddr.go:164
↓ 1 callersMethodlistenStream
(ln net.Listener)
acceptor_windows.go:26
↓ 1 callersFunctionmaxListenerBacklog
()
pkg/socket/sock_bsd.go:26
↓ 1 callersMethodopen
(c *conn)
eventloop_unix.go:232
↓ 1 callersMethodopen
()
listener_unix.go:53
↓ 1 callersMethodopen
()
listener_windows.go:87
↓ 1 callersMethodopen
(oc *openConn)
eventloop_windows.go:188
↓ 1 callersMethodpeekAll
peekAll returns all bytes without advancing the read pointer.
pkg/buffer/ring/ring_buffer.go:107
↓ 1 callersFunctionprocess
(conn net.Conn)
client_test.go:759
↓ 1 callersMethodread
(c *conn)
eventloop_windows.go:207
↓ 1 callersMethodreadUDP
(fd int, _ netpoll.IOEvent, _ netpoll.IOFlags)
eventloop_unix.go:451
↓ 1 callersMethodreadUDP
(c *conn)
eventloop_windows.go:225
↓ 1 callersMethodresetBuffer
()
connection_windows.go:128
↓ 1 callersMethodresetBuffer
()
connection_unix.go:308
↓ 1 callersMethodrunEventLoops
(ctx context.Context, numEventLoop int)
engine_unix.go:82
↓ 1 callersFunctionrunSimClient
(t *testing.T, network, addr string, packetSize, batch int)
gnet_test.go:1969
↓ 1 callersMethodstart
(ctx context.Context, numEventLoop int)
engine_windows.go:67
↓ 1 callersMethodstart
(ctx context.Context, numEventLoop int)
engine_unix.go:190
↓ 1 callersFunctionstartGnetClient
(t *testing.T, cli *Client, network, addr string, multicore, async, netDial bool)
client_test.go:535
↓ 1 callersMethodstartMcastClient
()
os_unix_test.go:107
↓ 1 callersMethodstop
(ctx context.Context, engine Engine)
engine_windows.go:106
↓ 1 callersMethodstop
(ctx context.Context, s Engine)
engine_unix.go:198
↓ 1 callersFunctionsysAccept
(fd int)
pkg/socket/sys_cloexec.go:40
↓ 1 callersFunctiontcpSocket
tcpSocket creates an endpoint for communication and returns a file descriptor that refers to that endpoint.
pkg/socket/tcp_socket.go:85
↓ 1 callersFunctiontestCloseActionError
(t *testing.T, network, addr string)
gnet_test.go:1134
↓ 1 callersFunctiontestCloseActionOnOpen
(t *testing.T, network, addr string)
gnet_test.go:1222
↓ 1 callersFunctiontestCloseConnection
(t *testing.T, network, addr string)
gnet_test.go:1380
↓ 1 callersFunctiontestConnWakeImmediately
(t *testing.T, client *Client, clientEV *clientEventsForWake, network, addr string)
client_test.go:665
↓ 1 callersFunctiontestEngineStop
(t *testing.T, network, addr string)
gnet_test.go:1514
↓ 1 callersFunctiontestSafeContext
(t *testing.T, network, addr string)
gnet_test.go:2870
↓ 1 callersFunctiontestShutdown
(t *testing.T, network, addr string)
gnet_test.go:1067
↓ 1 callersFunctiontestShutdownActionError
(t *testing.T, network, addr string)
gnet_test.go:1179
↓ 1 callersFunctiontestShutdownActionOnOpen
(t *testing.T, network, addr string)
gnet_test.go:1270
↓ 1 callersFunctiontestStop
(t *testing.T, network, addr string)
gnet_test.go:1450
↓ 1 callersFunctiontestTick
(network, addr string, t *testing.T)
gnet_test.go:930
↓ 1 callersFunctiontestUDPShutdown
(t *testing.T, network, addr string)
gnet_test.go:1320
↓ 1 callersFunctiontestWakeConn
(t *testing.T, network, addr string)
gnet_test.go:996
↓ 1 callersFunctionudpSocket
udpSocket creates an endpoint for communication and returns a file descriptor that refers to that endpoint.
pkg/socket/udp_socket.go:83
↓ 1 callersFunctionudsSocket
udsSocket creates an endpoint for communication and returns a file descriptor that refers to that endpoint.
pkg/socket/unix_socket.go:47
↓ 1 callersFunctionunpackTCPConn
(tc *tcpConn)
connection_windows.go:73
↓ 1 callersMethodwrite
(c *conn)
eventloop_unix.go:310
MethodAddRead
AddRead registers the given file descriptor with readable event to the poller.
pkg/netpoll/poller_kqueue_ultimate.go:183
MethodAddRead
AddRead registers the given file descriptor with readable event to the poller.
pkg/netpoll/poller_kqueue_default.go:178
MethodAddReadWrite
AddReadWrite registers the given file descriptor with readable and writable events to the poller.
pkg/netpoll/poller_kqueue_ultimate.go:167
MethodAddReadWrite
AddReadWrite registers the given file descriptor with readable and writable events to the poller.
pkg/netpoll/poller_epoll_ultimate.go:191
MethodAddReadWrite
AddReadWrite registers the given file descriptor with readable and writable events to the poller.
pkg/netpoll/poller_kqueue_default.go:165
MethodAddWrite
AddWrite registers the given file descriptor with writable event to the poller.
pkg/netpoll/poller_kqueue_ultimate.go:197
MethodAddWrite
AddWrite registers the given file descriptor with writable event to the poller.
pkg/netpoll/poller_epoll_ultimate.go:213
MethodAddWrite
AddWrite registers the given file descriptor with writable event to the poller.
pkg/netpoll/poller_epoll_default.go:209
MethodAddWrite
AddWrite registers the given file descriptor with writable event to the poller.
pkg/netpoll/poller_kqueue_default.go:190
MethodAllocNode
AllocNode allocates a []byte with the given length that is expected to be pushed into the Buffer.
pkg/buffer/linkedlist/linked_list_buffer.go:69
MethodAppend
Append is like PushBack but appends b without copying it.
pkg/buffer/linkedlist/linked_list_buffer.go:79
MethodAsyncWrite
(buf []byte, callback AsyncCallback)
connection_unix.go:501
MethodAsyncWritev
(bs [][]byte, cb AsyncCallback)
connection_windows.go:491
MethodAsyncWritev
(bs [][]byte, callback AsyncCallback)
connection_unix.go:516
FunctionBenchmarkByteSlice
(b *testing.B)
pkg/pool/byteslice/byteslice_test.go:32
FunctionBenchmarkGC4El100k
(b *testing.B)
eventloop_unix_test.go:49
FunctionBenchmarkGC4El200k
(b *testing.B)
eventloop_unix_test.go:63
FunctionBenchmarkGC4El500k
(b *testing.B)
eventloop_unix_test.go:77
MethodCap
Cap returns the size of the underlying buffer.
pkg/buffer/elastic/elastic_ring_buffer.go:137
MethodClose
(c Conn)
eventloop_unix.go:88
← previousnext →301–400 of 759, ranked by callers