add more info
This commit is contained in:
parent
8f8c8442a7
commit
8b86db5907
|
@ -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,
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue