PktSizeSize = 2
// Heartbeat rate, relative to Timeout
TimeoutHeartbeat = 4
+ // Minimal valid packet length: 2+
+ MinPktLength = 2 + 16 + 8
)
func newNonceCipher(key *[32]byte) *xtea.Cipher {
HeartbeatSent int
// Receiver
- BusyR sync.Mutex
+ BusyR sync.Mutex `json:"-"`
bufR []byte
tagR *[TagSize]byte
keyAuthR *[SSize]byte
pktSizeR uint16
// Transmitter
- BusyT sync.Mutex
+ BusyT sync.Mutex `json:"-"`
bufT []byte
tagT *[TagSize]byte
keyAuthT *[SSize]byte