Documentation ¶
Index ¶
- 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
- type SocketFD
- type Thread
- 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
- type ThreadIDKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddGlobalSock ¶
AddGlobalSock add socket, case: Accept、Connect
func OperateThread ¶
OperateThread create when session notExist
func OperateThreadOnRecordingSession ¶
OperateThreadOnRecordingSession only on RecordingSession
func RemoveGlobalSock ¶
func RemoveGlobalSock(socketFD SocketFD)
RemoveGlobalSock rm socket, case: Close
Types ¶
type Thread ¶
Thread Thread
func (*Thread) IgnoreSocketFD ¶
IgnoreSocketFD IgnoreSocketFD
func (*Thread) OnSend ¶
func (thread *Thread) OnSend(socketFD SocketFD, span []byte, extraHeaderSentSize int, raddr net.Addr)
OnSend OnSend
Click to show internal directories.
Click to hide internal directories.