This commit is contained in:
liwei committed 2019-09-12 18:57:17 +08:00
1 parent 075852b847
commit adb7d89018
19 files changed
+415 -258

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
package message
// keep-alive: <len=0000>
type Keepalive struct{}
func (k *Keepalive) Encode() []byte {
return []byte{0, 0, 0, 0}
}
func (k *Keepalive) Decode(buf []byte) Serialize {
return &Keepalive{}
}