Files
gopeed/protocol/bt/peer/message/msg_keepalive.go
T
2020-02-25 14:22:17 +08:00

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{}
}