mirror of
https://github.com/zr-hebo/sniffer-agent.git
synced 2025-08-10 21:05:52 +08:00
16 lines
236 B
Go
16 lines
236 B
Go
package model
|
|
|
|
type TCPPacket struct {
|
|
Payload []byte
|
|
Seq int64
|
|
ToServer bool
|
|
}
|
|
|
|
func NewTCPPacket(payload []byte, seq int64, toServer bool) *TCPPacket {
|
|
return &TCPPacket{
|
|
Payload: payload,
|
|
Seq: seq,
|
|
ToServer: toServer,
|
|
}
|
|
}
|