MCPcopy
hub / github.com/google/gopacket / StreamFactory

Interface StreamFactory

reassembly/tcpassembly.go:384–387  ·  view source on GitHub ↗

StreamFactory is used by assembly to create a new stream for each new TCP session.

Source from the content-addressed store, hash-verified

382// StreamFactory is used by assembly to create a new stream for each
383// new TCP session.
384type StreamFactory interface {
385 // New should return a new stream for the given TCP key.
386 New(netFlow, tcpFlow gopacket.Flow, tcp *layers.TCP, ac AssemblerContext) Stream
387}
388
389type key [2]gopacket.Flow
390

Callers

nothing calls this directly

Implementers 12

streamFactorypcap/gopacket_benchmark/benchmark.go
testFactoryBenchreassembly/tcpassembly_test.go
testFactoryreassembly/tcpassembly_test.go
testMemoryFactoryreassembly/tcpassembly_test.go
testKeepFactoryreassembly/tcpassembly_test.go
testFSMFactoryreassembly/tcpassembly_test.go
myFactoryexamples/bidirectional/main.go
httpStreamFactoryexamples/httpassembly/main.go
statsStreamFactoryexamples/statsassembly/main.go
tcpStreamFactoryexamples/reassemblydump/main.go
testFactorytcpassembly/assembly_test.go
testReaderFactorytcpassembly/tcpreader/reader_test.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…