mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-04 23:57:54 +00:00
13 lines
211 B
Go
13 lines
211 B
Go
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{}
|
|
}
|