// NewTCPFlow filters the packet in d by t.MatchFlow and returns the resulting
// TCPFlow for analysis.
NewTCPFlow filters the packet in d by t.MatchFlow and returns the resulting
TCPFlow for analysis.
// NewTCPFlow filters the packet in d by t . MatchFlow and returns the resulting // TCPFlow for analysis .
func NewTCPFlow(d []*pkt.Packet, t *TCPTuple) *TCPFlow {
	f := &TCPFlow{
		TCPTuple:   t,
		SrcDataMap: make(map[uint32]*pkt.Packet),
		DstDataMap: make(map[uint32]*pkt.Packet),
	}
	f.AddData(d)
	return f
}
func NewTCPFlow ( d [ ] * pkt . Packet , t * TCPTuple ) * TCPFlow { f := & TCPFlow { TCPTuple : t , SrcDataMap : make ( map [ uint32 ] * pkt . Packet ) , DstDataMap : make ( map [ uint32 ] * pkt . Packet ) , } f . AddData ( d ) return f }
NewTCPFlow filters the packet in d by t.MatchFlow and returns the resulting
TCPFlow for analysis.
NewTCPFlow filters the packet in d by t . MatchFlow and returns the resulting TCPFlow for analysis .