FILE / ScuroNeko/mtg

mtproto/rpc/rpc_handshake_request.go

Исходный файл и его история в репозитории.
FILE 0738631ef81ade2c43e4cd9b83e217e94e8a920c
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{}
}