rename and lift ProtocolMsg into API
This commit is contained in:
1 parent
d089900632
commit
ac95d5ab29
5 files changed
+24
-25
No files matched your search
+4
-4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user