github.com/GeniusesGroup/libgo@v0.0.0-20220929090155-5ff932cb408e/gp/packet-structure.go (about) 1 /* For license and copyright information please see LEGAL file in repository */ 2 3 package gp 4 5 // packetStructure is represent protocol structure. 6 // It is just to show protocol in better way, we never use this type. 7 // Read more about this protocol : https://github.com/GeniusesGroup/RFCs/blob/master/Giti-Network.md 8 type packetStructure struct { 9 //DestinationGPAddr[16]byte 10 DestinationPlanet [2]byte // uint16 11 DestinationSociety [4]byte // uint32 12 DestinationRouter [4]byte // uint32 13 DestinationUser [4]byte // uint32 14 DestinationApp [2]byte // uint16 15 16 //SourceGPAddr[16]byte 17 SourcePlanet [2]byte // uint16 18 SourceSociety [4]byte // uint32 19 SourceRouter [4]byte // uint32 20 SourceUser [4]byte // uint32 21 SourceApp [2]byte // uint16 22 23 PacketNumber [8]byte // uint64 24 Frames []byte 25 Signature []byte // Checksum, MAC, Tag, ... 26 }