stream

package
v0.0.0-...-b3f7bda Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	CaptureInfo gopacket.CaptureInfo
}

func (*Context) GetCaptureInfo

func (c *Context) GetCaptureInfo() gopacket.CaptureInfo

type Packet

type Packet struct {
	// contains filtered or unexported fields
}

func NewPacket

func NewPacket(proto decoder.ApplicationPortocol, t *layers.TCP) *Packet

func (*Packet) Append

func (p *Packet) Append(data []byte) int

func (*Packet) Completed

func (p *Packet) Completed() bool

func (*Packet) Data

func (p *Packet) Data() []byte

type TCPStream

type TCPStream struct {
	// contains filtered or unexported fields
}

func NewTCPStream

func NewTCPStream(netFlow, tcpFlow gopacket.Flow, tcp *layers.TCP) *TCPStream

func (*TCPStream) Accept

func (*TCPStream) ReassembledSG

func (self *TCPStream) ReassembledSG(sg reassembly.ScatterGather, ac reassembly.AssemblerContext)

func (*TCPStream) ReassemblyComplete

func (self *TCPStream) ReassemblyComplete(ac reassembly.AssemblerContext) bool

关闭连接时调用,一般会在FlushOption时调用

type TCPStreamFactory

type TCPStreamFactory struct {
	// contains filtered or unexported fields
}

func (*TCPStreamFactory) New

func (self *TCPStreamFactory) New(netFlow, tcpFlow gopacket.Flow, tcp *layers.TCP, ac reassembly.AssemblerContext) reassembly.Stream

func (*TCPStreamFactory) WaitGoRoutines

func (self *TCPStreamFactory) WaitGoRoutines()

Jump to

Keyboard shortcuts

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