FILE / ScuroNeko/mtg

mtproto/rpc/rpc_handshake_request.go

Исходный файл и его история в репозитории.
FILE 7b43766a081d478f53c89bc5d87803675c13acaa
Files
mtg/mtproto/rpc/rpc_handshake_request.go
T

22 lines
372 B
Go

package rpc
import "bytes"
type RPCHandshakeRequest struct {
}
func (r *RPCHandshakeRequest) Bytes() []byte {
buf := &bytes.Buffer{}
buf.Write(RPCTagHandshake)
buf.Write(RPCHandshakeFlags)
buf.Write(RPCHandshakeSenderPID)
buf.Write(RPCHandshakePeerPID)
return buf.Bytes()
}
func NewRPCHandshakeRequest() *RPCHandshakeRequest {
return &RPCHandshakeRequest{}
}