Versions in this module Expand all Collapse all v1 v1.0.2 Sep 12, 2021 Changes in this version + func AddGlobalSock(socketFD SocketFD, remoteAddr net.TCPAddr, isServer bool) + func OperateThread(threadID ThreadID, op func(thread *Thread)) + func OperateThreadOnRecordingSession(threadID ThreadID, op func(thread *Thread)) + func RemoveGlobalSock(socketFD SocketFD) + func StartGC() + type RecvFlags int + type SocketFD int + type Thread struct + func (thread *Thread) IgnoreSocketFD(socketFD SocketFD, remoteAddr net.TCPAddr) + func (thread *Thread) OnAccept(serverSocketFD SocketFD, clientSocketFD SocketFD, addr net.TCPAddr) + func (thread *Thread) OnAccess() + func (thread *Thread) OnConnect(socketFD SocketFD, remoteAddr net.TCPAddr) + func (thread *Thread) OnRecv(socketFD SocketFD, span []byte, flags RecvFlags) []byte + func (thread *Thread) OnSend(socketFD SocketFD, span []byte, extraHeaderSentSize int, raddr net.Addr) + func (thread *Thread) OnSendTo(socketFD SocketFD, span []byte, addr net.UDPAddr) + func (thread *Thread) OnShutdown() + type ThreadID int32 + type ThreadIDKey string