Files
weave/router/protocol.go
T
Matthias Radestock 1181a0cb33 better APIs for sending protocol messages
no longer tagging requiring the caller to construct them
2015-01-20 22:31:16 +00:00

24 lines
357 B
Go

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