Files
weave/router/protocol.go
T
2015-01-20 23:36:02 +00:00

24 lines
351 B
Go

package router
const (
Protocol = "weave"
ProtocolVersion = 10
)
type ProtocolTag byte
const (
ProtocolConnectionEstablished ProtocolTag = iota
ProtocolFragmentationReceived
ProtocolStartFragmentationTest
ProtocolNonce
ProtocolFetchAll
ProtocolUpdate
ProtocolPMTUVerified
)
type ProtocolMsg struct {
tag ProtocolTag
msg []byte
}