Documentation ¶
Overview ¶
Package protocol implements the Miitopia DataStore protocol
Package protocol implements the Miitopia DataStore protocol
Index ¶
Constants ¶
View Source
const ( // ProtocolID is the Protocol ID for the DataStore (Miitopia) protocol. ID is the same as the DataStore protocol ProtocolID = 0x73 // MethodSearchMii is the method ID for SearchMii MethodSearchMii = 0x2F )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Protocol ¶
type Protocol struct { SearchMii func(err error, packet nex.PacketInterface, callId uint32, param *datastore_miitopia_types.MiiTubeSearchParam) (*nex.RMCMessage, *nex.Error) // contains filtered or unexported fields }
Protocol stores all the RMC method handlers for the DataStore (Miitopia) protocol and listens for requests Embeds the DataStore protocol
func NewProtocol ¶
func NewProtocol(endpoint nex.EndpointInterface) *Protocol
NewProtocol returns a new DataStore (Miitopia) 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.