magic
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user