enums

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SocketDataStaticsTypeRTT     = 1
	SocketDataStaticsTypeExeTime = 2
)
View Source
const (
	SocketFunctionNameConnect    = 1
	SocketFunctionNameAccept     = 2
	SocketFunctionNameClose      = 3
	SocketFunctionNameSend       = 4
	SocketFunctionNameSendto     = 5
	SocketFunctionNameSendMsg    = 6
	SocketFunctionNameSendMMSg   = 7
	SocketFunctionNameSendFile   = 8
	SocketFunctionNameWrite      = 9
	SocketFunctionNameWritev     = 10
	SocketFunctionNameRead       = 11
	SocketFunctionNameReadv      = 12
	SocketFunctionNameRecv       = 13
	SocketFunctionNameRecvfrom   = 14
	SocketFunctionNameRecvMsg    = 15
	SocketFunctionNameRecvMMsg   = 16
	SocketFunctionNameResent     = 17
	SocketFunctionNameSslWrite   = 18
	SocketFunctionNameSslRead    = 19
	SocketFunctionNameGoTLSWrite = 20
	SocketFunctionNameGoTLSRead  = 21
)

Variables

View Source
var SocketFamilyUnknown = uint8(0xff)

Functions

This section is empty.

Types

type ConnectionProtocol

type ConnectionProtocol uint8
const (
	ConnectionProtocolUnknown ConnectionProtocol = 0
	ConnectionProtocolHTTP    ConnectionProtocol = 1
	ConnectionProtocolHTTP2   ConnectionProtocol = 2
)

func (ConnectionProtocol) String

func (c ConnectionProtocol) String() string

type ConnectionRole

type ConnectionRole uint32

ConnectionRole represents the role of the current process is the connection whether it's a server or a client, if it's not trigger the connection/accept request, then it's unknown

const (
	ConnectionRoleUnknown ConnectionRole = 0
	ConnectionRoleClient  ConnectionRole = 1
	ConnectionRoleServer  ConnectionRole = 2
)

func (ConnectionRole) Revert

func (r ConnectionRole) Revert() ConnectionRole

func (ConnectionRole) String

func (r ConnectionRole) String() string

type ParseResult

type ParseResult int
const (
	ParseResultSuccess ParseResult = iota
	ParseResultSkipPackage
)

type SocketDataDirection

type SocketDataDirection uint8

SocketDataDirection indicates whether data is being written or receive

const (
	SocketDataDirectionIngress SocketDataDirection = 1
	SocketDataDirectionEgress  SocketDataDirection = 2
)

func (SocketDataDirection) String

func (d SocketDataDirection) String() string

type SocketDataStaticsType

type SocketDataStaticsType uint8

SocketDataStaticsType represents the stat type when read or write

type SocketExceptionOperationType

type SocketExceptionOperationType uint32
const (
	SocketExceptionOperationRetransmit SocketExceptionOperationType = 1
	SocketExceptionOperationDrop       SocketExceptionOperationType = 2
)

type SocketFunctionName

type SocketFunctionName uint8

func (SocketFunctionName) GetSocketOperationType

func (f SocketFunctionName) GetSocketOperationType() SocketOperationType

func (SocketFunctionName) String

func (f SocketFunctionName) String() string

nolint

type SocketMessageType

type SocketMessageType uint8
const (
	SocketMessageTypeUnknown  SocketMessageType = 0
	SocketMessageTypeRequest  SocketMessageType = 1
	SocketMessageTypeResponse SocketMessageType = 2
)

func (SocketMessageType) String

func (m SocketMessageType) String() string

type SocketOperationType

type SocketOperationType int
var (
	SocketOperationTypeConnect SocketOperationType = 0
	SocketOperationTypeAccept  SocketOperationType = 1
	SocketOperationTypeClose   SocketOperationType = 2
	SocketOperationTypeWrite   SocketOperationType = 3
	SocketOperationTypeRead    SocketOperationType = 4
	SocketOperationTypeUnknown SocketOperationType = 5
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL