mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 17:54:01 +03:00
Remove borsh borsh new borsch
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package rpc
|
||||
|
||||
import "bytes"
|
||||
|
||||
type HandshakeRequest struct {
|
||||
}
|
||||
|
||||
func (r *HandshakeRequest) Bytes() []byte {
|
||||
buf := &bytes.Buffer{}
|
||||
|
||||
buf.Write(TagHandshake)
|
||||
buf.Write(HandshakeFlags)
|
||||
buf.Write(HandshakeSenderPID)
|
||||
buf.Write(HandshakePeerPID)
|
||||
|
||||
return buf.Bytes()
|
||||
}
|
||||
|
||||
func NewHandshakeRequest() *HandshakeRequest {
|
||||
return &HandshakeRequest{}
|
||||
}
|
||||
Reference in New Issue
Block a user