add more info

This commit is contained in:
hebo 2019-08-21 22:53:11 +08:00
parent 8f8c8442a7
commit 8b86db5907
1 changed files with 15 additions and 0 deletions

15
model/tcp_packet.go Normal file
View File

@ -0,0 +1,15 @@
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,
}
}