mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-27 15:53:57 +00:00
23 lines
580 B
Go
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{}
|
|
}
|