protocol

package
v1.0.58 Latest Latest
Warning

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

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

Documentation

Overview

Package protocol implements the AAUser protocol

Package protocol implements the AAUser protocol

Package protocol implements the AAUser protocol

Package protocol implements the AAUser protocol

Package protocol implements the AAUser protocol

Index

Constants

View Source
const (
	// ProtocolID is the protocol ID for the AAUser protocol
	ProtocolID = 0x7B

	// MethodRegisterApplication is the method ID for the method RegisterApplication
	MethodRegisterApplication = 0x1

	// MethodUnregisterApplication is the method ID for the method UnregisterApplication
	MethodUnregisterApplication = 0x2

	// MethodSetApplicationInfo is the method ID for the method RegisterApplication
	MethodSetApplicationInfo = 0x3

	// MethodGetApplicationInfo is the method ID for the method GetApplicationInfo
	MethodGetApplicationInfo = 0x4
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Protocol added in v1.0.45

type Protocol struct {
	Server *nex.Server
	// contains filtered or unexported fields
}

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

func NewProtocol added in v1.0.45

func NewProtocol(server *nex.Server) *Protocol

NewProtocol returns a new AAUser protocol

func (*Protocol) GetApplicationInfo added in v1.0.45

func (protocol *Protocol) GetApplicationInfo(handler func(err error, packet nex.PacketInterface, callID uint32) uint32)

GetApplicationInfo sets the GetApplicationInfo handler function

func (*Protocol) RegisterApplication added in v1.0.45

func (protocol *Protocol) RegisterApplication(handler func(err error, packet nex.PacketInterface, callID uint32, titleID uint64) uint32)

RegisterApplication sets the RegisterApplication handler function

func (*Protocol) SetApplicationInfo added in v1.0.45

func (protocol *Protocol) SetApplicationInfo(handler func(err error, packet nex.PacketInterface, callID uint32, applicationInfo []*aauser_types.ApplicationInfo) uint32)

SetApplicationInfo sets the SetApplicationInfo handler function

func (*Protocol) Setup added in v1.0.45

func (protocol *Protocol) Setup()

Setup initializes the protocol

func (*Protocol) UnregisterApplication added in v1.0.45

func (protocol *Protocol) UnregisterApplication(handler func(err error, packet nex.PacketInterface, callID uint32, titleID uint64) uint32)

UnregisterApplication sets the UnregisterApplication handler function

Directories

Path Synopsis
Package types implements all the types used by the AAUser protocol
Package types implements all the types used by the AAUser protocol

Jump to

Keyboard shortcuts

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