Documentation ¶
Overview ¶
Package protocol implements the Nintendo Badge Arcade Secure Connection protocol
Package protocol implements the Nintendo Badge Arcade Secure Connection protocol
Index ¶
Constants ¶
View Source
const ( // ProtocolID is the protocol ID for the Secure Connection (Nintendo Badge Arcade) protocol. ID is the same as the Secure Connection Protocol ProtocolID = 0xB // MethodGetMaintenanceStatus is the method ID for GetMaintenanceStatus MethodGetMaintenanceStatus = 0x9 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Protocol ¶
type Protocol struct { GetMaintenanceStatus func(err error, packet nex.PacketInterface, callID uint32) (*nex.RMCMessage, *nex.Error) // contains filtered or unexported fields }
Protocol stores all the RMC method handlers for the Secure Connection (Nintendo Badge Arcade) protocol and listens for requests Embeds the SecureConnection Protocol
func NewProtocol ¶
func NewProtocol(endpoint nex.EndpointInterface) *Protocol
NewProtocol returns a new Secure Connection (Nintendo Badge Arcade) protocol
func (*Protocol) HandlePacket ¶
func (protocol *Protocol) HandlePacket(packet nex.PacketInterface)
HandlePacket sends the packet to the correct RMC method handler
Click to show internal directories.
Click to hide internal directories.