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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecompressBody

func DecompressBody(header http.Header, reader io.ReadCloser) (io.ReadCloser, bool)

Types

type HTTPDirect

type HTTPDirect int
const (
	HTTPDirectUnknown  HTTPDirect = -1
	HTTPDirectRequest  HTTPDirect = 0
	HTTPDirectResopnse HTTPDirect = 1
)

Value are not really useful

func (HTTPDirect) String

func (dir HTTPDirect) String() string

type TCPStream

type TCPStream struct {

	//urls     []string
	//all      []httpGroup
	//hg sync.Mutex
	sync.Mutex
	// contains filtered or unexported fields
}

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

连接被关闭时的操作

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