refactor-for-testability #3

Merged
johnnylee merged 26 commits from refactor-for-testability into main 2025-03-01 20:02:27 +00:00
Showing only changes of commit 5cafd030ac - Show all commits

View File

@ -9,10 +9,18 @@ const (
packetTypeAck = 3
packetTypeProbe = 4
packetTypeAddrDiscovery = 5
packetTypeInit = 6
)
// ----------------------------------------------------------------------------
type packetInit struct {
TraceID uint64
Version uint64
}
// ----------------------------------------------------------------------------
type packetSyn struct {
TraceID uint64 // TraceID to match response w/ request.
SharedKey [32]byte // Our shared key.