protocol

package
v2.0.4 Latest Latest
Warning

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

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

Documentation

Overview

Package protocol implements the Service Item protocol

Index

Constants

View Source
const (
	// ProtocolID is the Protocol ID for the Service Item protocol
	ProtocolID = 0x77
)

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 Service Item 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 ServiceItemTeamKirbyClashDeluxe protocol
Package protocol implements the ServiceItemTeamKirbyClashDeluxe protocol
types
Package types implements all the types used by the ServiceItem protocol
Package types implements all the types used by the ServiceItem protocol
Package protocol implements the ServiceItemWiiSportsClub protocol
Package protocol implements the ServiceItemWiiSportsClub protocol
types
Package types implements all the types used by the ServiceItem protocol
Package types implements all the types used by the ServiceItem protocol

Jump to

Keyboard shortcuts

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