protocol

package
v2.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package protocol implements the Shop protocol

Index

Constants

View Source
const (
	// ProtocolID is the Protocol ID for the Shop protocol
	ProtocolID = 0xC8
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Protocol

type Protocol struct {
	Patches        nex.ServiceProtocol
	PatchedMethods []uint32
	// contains filtered or unexported fields
}

Protocol stores all the RMC method handlers for the Shop protocol and listens for requests

func (*Protocol) Endpoint

func (protocol *Protocol) Endpoint() nex.EndpointInterface

Endpoint returns the endpoint implementing the protocol

func (*Protocol) HandlePacket

func (protocol *Protocol) HandlePacket(packet nex.PacketInterface)

HandlePacket sends the packet to the correct RMC method handler

func (*Protocol) SetEndpoint

func (protocol *Protocol) SetEndpoint(endpoint nex.EndpointInterface)

SetEndpoint sets the endpoint implementing the protocol

Directories

Path Synopsis
Package protocol implements the Nintendo Badge Arcade Shop protocol
Package protocol implements the Nintendo Badge Arcade Shop protocol
types
Package types implements all the types used by the ShopNintendoBadgeArcade protocol
Package types implements all the types used by the ShopNintendoBadgeArcade protocol
Package types implements all the types used by the Shop protocol
Package types implements all the types used by the Shop protocol

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL