rename and lift ProtocolMsg into API

This commit is contained in:
Matthias Radestock committed 2015-01-20 23:23:59 +00:00
1 parent d089900632
commit ac95d5ab29
5 files changed
+24 -25

No files matched your search

+4 -4
View File
@@ -5,15 +5,15 @@ const (
ProtocolVersion = 10
)
type ProtocolMsg byte
type ProtocolTag byte
type TaggedProtocolMsg struct {
tag ProtocolMsg
type ProtocolMsg struct {
tag ProtocolTag
msg []byte
}
const (
ProtocolConnectionEstablished ProtocolMsg = iota
ProtocolConnectionEstablished ProtocolTag = iota
ProtocolFragmentationReceived
ProtocolStartFragmentationTest
ProtocolNonce