This commit is contained in:
Pin
2024-03-07 21:03:27 -05:00
parent 855c1a075f
commit 995a2bd30a
13 changed files with 360 additions and 68 deletions

View File

@@ -3,6 +3,14 @@ package structs
import (
)
type UDPPackage struct {
SourcePort [2]byte
Destport [2]byte
Length [2]byte
Checksum [2]byte
}
type SaprusHeaderFrame struct {
PacketType [2]byte
Length [2]byte
@@ -16,4 +24,3 @@ func (c SaprusHeaderFrame) Bytes() []byte {
data = append(data, c.Payload...)
return data
}