kaspad/app/appmessage/p2p_ready.go
2023-08-23 15:36:21 +09:00

23 lines
580 B
Go

package appmessage
// MsgReady implements the Message interface and represents a c4ex
// Ready message. It is used to notify that the peer is ready to receive
// messages.
//
// This message has no payload.
type MsgReady struct {
baseMessage
}
// Command returns the protocol command string for the message. This is part
// of the Message interface implementation.
func (msg *MsgReady) Command() MessageCommand {
return CmdReady
}
// NewMsgReady returns a new c4ex Ready message that conforms to the
// Message interface.
func NewMsgReady() *MsgReady {
return &MsgReady{}
}