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

Struct myFactory

examples/bidirectional/main.go:61–64  ·  view source on GitHub ↗

myFactory implements tcpassmebly.StreamFactory

Source from the content-addressed store, hash-verified

59
60// myFactory implements tcpassmebly.StreamFactory
61type myFactory struct {
62 // bidiMap maps keys to bidirectional stream pairs.
63 bidiMap map[key]*bidi
64}
65
66// New handles creating a new tcpassembly.Stream.
67func (f *myFactory) New(netFlow, tcpFlow gopacket.Flow) tcpassembly.Stream {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected