protocol

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2025 License: AGPL-3.0 Imports: 6 Imported by: 18

Documentation

Overview

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Package protocol implements the Match Making protocol

Index

Constants

View Source
const (
	// ProtocolID is the protocol ID for the Match Making protocol
	ProtocolID = 0x15

	// MethodRegisterGathering is the method ID for method RegisterGathering
	MethodRegisterGathering = 0x1

	// MethodUnregisterGathering is the method ID for method UnregisterGathering
	MethodUnregisterGathering = 0x2

	// MethodUnregisterGatherings is the method ID for method UnregisterGatherings
	MethodUnregisterGatherings = 0x3

	// MethodUpdateGathering is the method ID for method UpdateGathering
	MethodUpdateGathering = 0x4

	// MethodInvite is the method ID for method Invite
	MethodInvite = 0x5

	// MethodAcceptInvitation is the method ID for method AcceptInvitation
	MethodAcceptInvitation = 0x6

	// MethodDeclineInvitation is the method ID for method DeclineInvitation
	MethodDeclineInvitation = 0x7

	// MethodCancelInvitation is the method ID for method CancelInvitation
	MethodCancelInvitation = 0x8

	// MethodGetInvitationsSent is the method ID for method GetInvitationsSent
	MethodGetInvitationsSent = 0x9

	// MethodGetInvitationsReceived is the method ID for method GetInvitationsReceived
	MethodGetInvitationsReceived = 0xA

	// MethodParticipate is the method ID for method Participate
	MethodParticipate = 0xB

	// MethodCancelParticipation is the method ID for method CancelParticipation
	MethodCancelParticipation = 0xC

	// MethodGetParticipants is the method ID for method GetParticipants
	MethodGetParticipants = 0xD

	// MethodAddParticipants is the method ID for method AddParticipants
	MethodAddParticipants = 0xE

	// MethodGetDetailedParticipants is the method ID for method GetDetailedParticipants
	MethodGetDetailedParticipants = 0xF

	// MethodGetParticipantsURLs is the method ID for method GetParticipantsURLs
	MethodGetParticipantsURLs = 0x10

	// MethodFindByType is the method ID for method FindByType
	MethodFindByType = 0x11

	// MethodFindByDescription is the method ID for method FindByDescription
	MethodFindByDescription = 0x12

	// MethodFindByDescriptionRegex is the method ID for method FindByDescriptionRegex
	MethodFindByDescriptionRegex = 0x13

	// MethodFindByID is the method ID for method FindByID
	MethodFindByID = 0x14

	// MethodFindBySingleID is the method ID for method FindBySingleID
	MethodFindBySingleID = 0x15

	// MethodFindByOwner is the method ID for method FindByOwner
	MethodFindByOwner = 0x16

	// MethodFindByParticipants is the method ID for method FindByParticipants
	MethodFindByParticipants = 0x17

	// MethodFindInvitations is the method ID for method FindInvitations
	MethodFindInvitations = 0x18

	// MethodFindBySQLQuery is the method ID for method FindBySQLQuery
	MethodFindBySQLQuery = 0x19

	// MethodLaunchSession is the method ID for method LaunchSession
	MethodLaunchSession = 0x1A

	// MethodUpdateSessionURL is the method ID for method UpdateSessionURL
	MethodUpdateSessionURL = 0x1B

	// MethodGetSessionURL is the method ID for method GetSessionURL
	MethodGetSessionURL = 0x1C

	// MethodGetState is the method ID for method GetState
	MethodGetState = 0x1D

	// MethodSetState is the method ID for method SetState
	MethodSetState = 0x1E

	// MethodReportStats is the method ID for method ReportStats
	MethodReportStats = 0x1F

	// MethodGetStats is the method ID for method GetStats
	MethodGetStats = 0x20

	// MethodDeleteGathering is the method ID for method DeleteGathering
	MethodDeleteGathering = 0x21

	// MethodGetPendingDeletions is the method ID for method GetPendingDeletions
	MethodGetPendingDeletions = 0x22

	// MethodDeleteFromDeletions is the method ID for method DeleteFromDeletions
	MethodDeleteFromDeletions = 0x23

	// MethodMigrateGatheringOwnershipV1 is the method ID for method MigrateGatheringOwnershipV1
	MethodMigrateGatheringOwnershipV1 = 0x24

	// MethodFindByDescriptionLike is the method ID for method FindByDescriptionLike
	MethodFindByDescriptionLike = 0x25

	// MethodRegisterLocalURL is the method ID for method RegisterLocalURL
	MethodRegisterLocalURL = 0x26

	// MethodRegisterLocalURLs is the method ID for method RegisterLocalURLs
	MethodRegisterLocalURLs = 0x27

	// MethodUpdateSessionHostV1 is the method ID for method UpdateSessionHostV1
	MethodUpdateSessionHostV1 = 0x28

	// MethodGetSessionURLs is the method ID for method GetSessionURLs
	MethodGetSessionURLs = 0x29

	// MethodUpdateSessionHost is the method ID for method UpdateSessionHost
	MethodUpdateSessionHost = 0x2A

	// MethodUpdateGatheringOwnership is the method ID for method UpdateGatheringOwnership
	MethodUpdateGatheringOwnership = 0x2B

	// MethodMigrateGatheringOwnership is the method ID for method MigrateGatheringOwnership
	MethodMigrateGatheringOwnership = 0x2C
)

Variables

View Source
var GatheringFlags = gatheringFlags{
	PersistentGathering:                   0x1,
	DisconnectChangeOwner:                 0x10,
	Unknown1:                              0x20,
	PersistentGatheringLeaveParticipation: 0x40,
	PersistentGatheringAllowZeroUsers:     0x80,
	ParticipantsChangeOwner:               0x200,
	VerboseParticipants:                   0x400,
	VerboseParticipantsEx:                 0x800,
}

GatheringFlags is an enum of the possible flags for a gathering

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Endpoint() nex.EndpointInterface
	SetEndpoint(endpoint nex.EndpointInterface)
	SetHandlerRegisterGathering(handler func(err error, packet nex.PacketInterface, callID uint32, anyGathering match_making_types.GatheringHolder) (*nex.RMCMessage, *nex.Error))
	SetHandlerUnregisterGathering(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32) (*nex.RMCMessage, *nex.Error))
	SetHandlerUnregisterGatherings(handler func(err error, packet nex.PacketInterface, callID uint32, lstGatherings types.List[types.UInt32]) (*nex.RMCMessage, *nex.Error))
	SetHandlerUpdateGathering(handler func(err error, packet nex.PacketInterface, callID uint32, anyGathering match_making_types.GatheringHolder) (*nex.RMCMessage, *nex.Error))
	SetHandlerInvite(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, lstPrincipals types.List[types.PID], strMessage types.String) (*nex.RMCMessage, *nex.Error))
	SetHandlerAcceptInvitation(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, strMessage types.String) (*nex.RMCMessage, *nex.Error))
	SetHandlerDeclineInvitation(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, strMessage types.String) (*nex.RMCMessage, *nex.Error))
	SetHandlerCancelInvitation(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, lstPrincipals types.List[types.PID], strMessage types.String) (*nex.RMCMessage, *nex.Error))
	SetHandlerGetInvitationsSent(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32) (*nex.RMCMessage, *nex.Error))
	SetHandlerGetInvitationsReceived(handler func(err error, packet nex.PacketInterface, callID uint32) (*nex.RMCMessage, *nex.Error))
	SetHandlerParticipate(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, strMessage types.String) (*nex.RMCMessage, *nex.Error))
	SetHandlerCancelParticipation(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, strMessage types.String) (*nex.RMCMessage, *nex.Error))
	SetHandlerGetParticipants(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32) (*nex.RMCMessage, *nex.Error))
	SetHandlerAddParticipants(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, lstPrincipals types.List[types.PID], strMessage types.String) (*nex.RMCMessage, *nex.Error))
	SetHandlerGetDetailedParticipants(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32) (*nex.RMCMessage, *nex.Error))
	SetHandlerGetParticipantsURLs(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32) (*nex.RMCMessage, *nex.Error))
	SetHandlerFindByType(handler func(err error, packet nex.PacketInterface, callID uint32, strType types.String, resultRange types.ResultRange) (*nex.RMCMessage, *nex.Error))
	SetHandlerFindByDescription(handler func(err error, packet nex.PacketInterface, callID uint32, strDescription types.String, resultRange types.ResultRange) (*nex.RMCMessage, *nex.Error))
	SetHandlerFindByDescriptionRegex(handler func(err error, packet nex.PacketInterface, callID uint32, strDescriptionRegex types.String, resultRange types.ResultRange) (*nex.RMCMessage, *nex.Error))
	SetHandlerFindByID(handler func(err error, packet nex.PacketInterface, callID uint32, lstID types.List[types.UInt32]) (*nex.RMCMessage, *nex.Error))
	SetHandlerFindBySingleID(handler func(err error, packet nex.PacketInterface, callID uint32, id types.UInt32) (*nex.RMCMessage, *nex.Error))
	SetHandlerFindByOwner(handler func(err error, packet nex.PacketInterface, callID uint32, id types.PID, resultRange types.ResultRange) (*nex.RMCMessage, *nex.Error))
	SetHandlerFindByParticipants(handler func(err error, packet nex.PacketInterface, callID uint32, pid types.List[types.PID]) (*nex.RMCMessage, *nex.Error))
	SetHandlerFindInvitations(handler func(err error, packet nex.PacketInterface, callID uint32, resultRange types.ResultRange) (*nex.RMCMessage, *nex.Error))
	SetHandlerFindBySQLQuery(handler func(err error, packet nex.PacketInterface, callID uint32, strQuery types.String, resultRange types.ResultRange) (*nex.RMCMessage, *nex.Error))
	SetHandlerLaunchSession(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, strURL types.String) (*nex.RMCMessage, *nex.Error))
	SetHandlerUpdateSessionURL(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, strURL types.String) (*nex.RMCMessage, *nex.Error))
	SetHandlerGetSessionURL(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32) (*nex.RMCMessage, *nex.Error))
	SetHandlerGetState(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32) (*nex.RMCMessage, *nex.Error))
	SetHandlerSetState(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, uiNewState types.UInt32) (*nex.RMCMessage, *nex.Error))
	SetHandlerReportStats(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, lstStats types.List[match_making_types.GatheringStats]) (*nex.RMCMessage, *nex.Error))
	SetHandlerGetStats(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, lstParticipants types.List[types.PID], lstColumns types.Buffer) (*nex.RMCMessage, *nex.Error))
	SetHandlerDeleteGathering(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32) (*nex.RMCMessage, *nex.Error))
	SetHandlerGetPendingDeletions(handler func(err error, packet nex.PacketInterface, callID uint32, uiReason types.UInt32, resultRange types.ResultRange) (*nex.RMCMessage, *nex.Error))
	SetHandlerDeleteFromDeletions(handler func(err error, packet nex.PacketInterface, callID uint32, lstDeletions types.List[types.UInt32]) (*nex.RMCMessage, *nex.Error))
	SetHandlerMigrateGatheringOwnershipV1(handler func(err error, packet nex.PacketInterface, callID uint32, gid types.UInt32, lstPotentialNewOwnersID types.List[types.PID]) (*nex.RMCMessage, *nex.Error))
	SetHandlerFindByDescriptionLike(handler func(err error, packet nex.PacketInterface, callID uint32, strDescriptionLike types.String, resultRange types.ResultRange) (*nex.RMCMessage, *nex.Error))
	SetHandlerRegisterLocalURL(handler func(err error, packet nex.PacketInterface, callID uint32, gid types.UInt32, url types.StationURL) (*nex.RMCMessage, *nex.Error))
	SetHandlerRegisterLocalURLs(handler func(err error, packet nex.PacketInterface, callID uint32, gid types.UInt32, lstURLs types.List[types.StationURL]) (*nex.RMCMessage, *nex.Error))
	SetHandlerUpdateSessionHostV1(handler func(err error, packet nex.PacketInterface, callID uint32, gid types.UInt32) (*nex.RMCMessage, *nex.Error))
	SetHandlerGetSessionURLs(handler func(err error, packet nex.PacketInterface, callID uint32, gid types.UInt32) (*nex.RMCMessage, *nex.Error))
	SetHandlerUpdateSessionHost(handler func(err error, packet nex.PacketInterface, callID uint32, gid types.UInt32, isMigrateOwner types.Bool) (*nex.RMCMessage, *nex.Error))
	SetHandlerUpdateGatheringOwnership(handler func(err error, packet nex.PacketInterface, callID uint32, gid types.UInt32, participantsOnly types.Bool) (*nex.RMCMessage, *nex.Error))
	SetHandlerMigrateGatheringOwnership(handler func(err error, packet nex.PacketInterface, callID uint32, gid types.UInt32, lstPotentialNewOwnersID types.List[types.PID], participantsOnly types.Bool) (*nex.RMCMessage, *nex.Error))
}

Interface implements the methods present on the Match Making protocol struct

type Protocol

type Protocol struct {
	RegisterGathering           func(err error, packet nex.PacketInterface, callID uint32, anyGathering match_making_types.GatheringHolder) (*nex.RMCMessage, *nex.Error)
	UnregisterGathering         func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32) (*nex.RMCMessage, *nex.Error)
	UnregisterGatherings        func(err error, packet nex.PacketInterface, callID uint32, lstGatherings types.List[types.UInt32]) (*nex.RMCMessage, *nex.Error)
	UpdateGathering             func(err error, packet nex.PacketInterface, callID uint32, anyGathering match_making_types.GatheringHolder) (*nex.RMCMessage, *nex.Error)
	Invite                      func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, lstPrincipals types.List[types.PID], strMessage types.String) (*nex.RMCMessage, *nex.Error)
	AcceptInvitation            func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, strMessage types.String) (*nex.RMCMessage, *nex.Error)
	DeclineInvitation           func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, strMessage types.String) (*nex.RMCMessage, *nex.Error)
	CancelInvitation            func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, lstPrincipals types.List[types.PID], strMessage types.String) (*nex.RMCMessage, *nex.Error)
	GetInvitationsSent          func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32) (*nex.RMCMessage, *nex.Error)
	GetInvitationsReceived      func(err error, packet nex.PacketInterface, callID uint32) (*nex.RMCMessage, *nex.Error)
	Participate                 func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, strMessage types.String) (*nex.RMCMessage, *nex.Error)
	CancelParticipation         func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, strMessage types.String) (*nex.RMCMessage, *nex.Error)
	GetParticipants             func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32) (*nex.RMCMessage, *nex.Error)
	AddParticipants             func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, lstPrincipals types.List[types.PID], strMessage types.String) (*nex.RMCMessage, *nex.Error)
	GetDetailedParticipants     func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32) (*nex.RMCMessage, *nex.Error)
	GetParticipantsURLs         func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32) (*nex.RMCMessage, *nex.Error)
	FindByType                  func(err error, packet nex.PacketInterface, callID uint32, strType types.String, resultRange types.ResultRange) (*nex.RMCMessage, *nex.Error)
	FindByDescription           func(err error, packet nex.PacketInterface, callID uint32, strDescription types.String, resultRange types.ResultRange) (*nex.RMCMessage, *nex.Error)
	FindByDescriptionRegex      func(err error, packet nex.PacketInterface, callID uint32, strDescriptionRegex types.String, resultRange types.ResultRange) (*nex.RMCMessage, *nex.Error)
	FindByID                    func(err error, packet nex.PacketInterface, callID uint32, lstID types.List[types.UInt32]) (*nex.RMCMessage, *nex.Error)
	FindBySingleID              func(err error, packet nex.PacketInterface, callID uint32, id types.UInt32) (*nex.RMCMessage, *nex.Error)
	FindByOwner                 func(err error, packet nex.PacketInterface, callID uint32, id types.PID, resultRange types.ResultRange) (*nex.RMCMessage, *nex.Error)
	FindByParticipants          func(err error, packet nex.PacketInterface, callID uint32, pid types.List[types.PID]) (*nex.RMCMessage, *nex.Error)
	FindInvitations             func(err error, packet nex.PacketInterface, callID uint32, resultRange types.ResultRange) (*nex.RMCMessage, *nex.Error)
	FindBySQLQuery              func(err error, packet nex.PacketInterface, callID uint32, strQuery types.String, resultRange types.ResultRange) (*nex.RMCMessage, *nex.Error)
	LaunchSession               func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, strURL types.String) (*nex.RMCMessage, *nex.Error)
	UpdateSessionURL            func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, strURL types.String) (*nex.RMCMessage, *nex.Error)
	GetSessionURL               func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32) (*nex.RMCMessage, *nex.Error)
	GetState                    func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32) (*nex.RMCMessage, *nex.Error)
	SetState                    func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, uiNewState types.UInt32) (*nex.RMCMessage, *nex.Error)
	ReportStats                 func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, lstStats types.List[match_making_types.GatheringStats]) (*nex.RMCMessage, *nex.Error)
	GetStats                    func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, lstParticipants types.List[types.PID], lstColumns types.Buffer) (*nex.RMCMessage, *nex.Error)
	DeleteGathering             func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32) (*nex.RMCMessage, *nex.Error)
	GetPendingDeletions         func(err error, packet nex.PacketInterface, callID uint32, uiReason types.UInt32, resultRange types.ResultRange) (*nex.RMCMessage, *nex.Error)
	DeleteFromDeletions         func(err error, packet nex.PacketInterface, callID uint32, lstDeletions types.List[types.UInt32]) (*nex.RMCMessage, *nex.Error)
	MigrateGatheringOwnershipV1 func(err error, packet nex.PacketInterface, callID uint32, gid types.UInt32, lstPotentialNewOwnersID types.List[types.PID]) (*nex.RMCMessage, *nex.Error)
	FindByDescriptionLike       func(err error, packet nex.PacketInterface, callID uint32, strDescriptionLike types.String, resultRange types.ResultRange) (*nex.RMCMessage, *nex.Error)
	RegisterLocalURL            func(err error, packet nex.PacketInterface, callID uint32, gid types.UInt32, url types.StationURL) (*nex.RMCMessage, *nex.Error)
	RegisterLocalURLs           func(err error, packet nex.PacketInterface, callID uint32, gid types.UInt32, lstURLs types.List[types.StationURL]) (*nex.RMCMessage, *nex.Error)
	UpdateSessionHostV1         func(err error, packet nex.PacketInterface, callID uint32, gid types.UInt32) (*nex.RMCMessage, *nex.Error)
	GetSessionURLs              func(err error, packet nex.PacketInterface, callID uint32, gid types.UInt32) (*nex.RMCMessage, *nex.Error)
	UpdateSessionHost           func(err error, packet nex.PacketInterface, callID uint32, gid types.UInt32, isMigrateOwner types.Bool) (*nex.RMCMessage, *nex.Error)
	UpdateGatheringOwnership    func(err error, packet nex.PacketInterface, callID uint32, gid types.UInt32, participantsOnly types.Bool) (*nex.RMCMessage, *nex.Error)
	MigrateGatheringOwnership   func(err error, packet nex.PacketInterface, callID uint32, gid types.UInt32, lstPotentialNewOwnersID types.List[types.PID], participantsOnly types.Bool) (*nex.RMCMessage, *nex.Error)
	Patches                     nex.ServiceProtocol
	PatchedMethods              []uint32
	// contains filtered or unexported fields
}

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

func NewProtocol

func NewProtocol() *Protocol

NewProtocol returns a new Match Making protocol

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

func (*Protocol) SetHandlerAcceptInvitation

func (protocol *Protocol) SetHandlerAcceptInvitation(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, strMessage types.String) (*nex.RMCMessage, *nex.Error))

SetHandlerAcceptInvitation sets the handler for the AcceptInvitation method

func (*Protocol) SetHandlerAddParticipants

func (protocol *Protocol) SetHandlerAddParticipants(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, lstPrincipals types.List[types.PID], strMessage types.String) (*nex.RMCMessage, *nex.Error))

SetHandlerAddParticipants sets the handler for the AddParticipants method

func (*Protocol) SetHandlerCancelInvitation

func (protocol *Protocol) SetHandlerCancelInvitation(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, lstPrincipals types.List[types.PID], strMessage types.String) (*nex.RMCMessage, *nex.Error))

SetHandlerCancelInvitation sets the handler for the CancelInvitation method

func (*Protocol) SetHandlerCancelParticipation

func (protocol *Protocol) SetHandlerCancelParticipation(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, strMessage types.String) (*nex.RMCMessage, *nex.Error))

SetHandlerCancelParticipation sets the handler for the CancelParticipation method

func (*Protocol) SetHandlerDeclineInvitation

func (protocol *Protocol) SetHandlerDeclineInvitation(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, strMessage types.String) (*nex.RMCMessage, *nex.Error))

SetHandlerDeclineInvitation sets the handler for the DeclineInvitation method

func (*Protocol) SetHandlerDeleteFromDeletions

func (protocol *Protocol) SetHandlerDeleteFromDeletions(handler func(err error, packet nex.PacketInterface, callID uint32, lstDeletions types.List[types.UInt32]) (*nex.RMCMessage, *nex.Error))

SetHandlerDeleteFromDeletions sets the handler for the DeleteFromDeletions method

func (*Protocol) SetHandlerDeleteGathering

func (protocol *Protocol) SetHandlerDeleteGathering(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32) (*nex.RMCMessage, *nex.Error))

SetHandlerDeleteGathering sets the handler for the DeleteGathering method

func (*Protocol) SetHandlerFindByDescription

func (protocol *Protocol) SetHandlerFindByDescription(handler func(err error, packet nex.PacketInterface, callID uint32, strDescription types.String, resultRange types.ResultRange) (*nex.RMCMessage, *nex.Error))

SetHandlerFindByDescription sets the handler for the FindByDescription method

func (*Protocol) SetHandlerFindByDescriptionLike

func (protocol *Protocol) SetHandlerFindByDescriptionLike(handler func(err error, packet nex.PacketInterface, callID uint32, strDescriptionLike types.String, resultRange types.ResultRange) (*nex.RMCMessage, *nex.Error))

SetHandlerFindByDescriptionLike sets the handler for the FindByDescriptionLike method

func (*Protocol) SetHandlerFindByDescriptionRegex

func (protocol *Protocol) SetHandlerFindByDescriptionRegex(handler func(err error, packet nex.PacketInterface, callID uint32, strDescriptionRegex types.String, resultRange types.ResultRange) (*nex.RMCMessage, *nex.Error))

SetHandlerFindByDescriptionRegex sets the handler for the FindByDescriptionRegex method

func (*Protocol) SetHandlerFindByID

func (protocol *Protocol) SetHandlerFindByID(handler func(err error, packet nex.PacketInterface, callID uint32, lstID types.List[types.UInt32]) (*nex.RMCMessage, *nex.Error))

SetHandlerFindByID sets the handler for the FindByID method

func (*Protocol) SetHandlerFindByOwner

func (protocol *Protocol) SetHandlerFindByOwner(handler func(err error, packet nex.PacketInterface, callID uint32, id types.PID, resultRange types.ResultRange) (*nex.RMCMessage, *nex.Error))

SetHandlerFindByOwner sets the handler for the FindByOwner method

func (*Protocol) SetHandlerFindByParticipants

func (protocol *Protocol) SetHandlerFindByParticipants(handler func(err error, packet nex.PacketInterface, callID uint32, pid types.List[types.PID]) (*nex.RMCMessage, *nex.Error))

SetHandlerFindByParticipants sets the handler for the FindByParticipants method

func (*Protocol) SetHandlerFindBySQLQuery

func (protocol *Protocol) SetHandlerFindBySQLQuery(handler func(err error, packet nex.PacketInterface, callID uint32, strQuery types.String, resultRange types.ResultRange) (*nex.RMCMessage, *nex.Error))

SetHandlerFindBySQLQuery sets the handler for the FindBySQLQuery method

func (*Protocol) SetHandlerFindBySingleID

func (protocol *Protocol) SetHandlerFindBySingleID(handler func(err error, packet nex.PacketInterface, callID uint32, id types.UInt32) (*nex.RMCMessage, *nex.Error))

SetHandlerFindBySingleID sets the handler for the FindBySingleID method

func (*Protocol) SetHandlerFindByType

func (protocol *Protocol) SetHandlerFindByType(handler func(err error, packet nex.PacketInterface, callID uint32, strType types.String, resultRange types.ResultRange) (*nex.RMCMessage, *nex.Error))

SetHandlerFindByType sets the handler for the FindByType method

func (*Protocol) SetHandlerFindInvitations

func (protocol *Protocol) SetHandlerFindInvitations(handler func(err error, packet nex.PacketInterface, callID uint32, resultRange types.ResultRange) (*nex.RMCMessage, *nex.Error))

SetHandlerFindInvitations sets the handler for the FindInvitations method

func (*Protocol) SetHandlerGetDetailedParticipants

func (protocol *Protocol) SetHandlerGetDetailedParticipants(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32) (*nex.RMCMessage, *nex.Error))

SetHandlerGetDetailedParticipants sets the handler for the GetDetailedParticipants method

func (*Protocol) SetHandlerGetInvitationsReceived

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

SetHandlerGetInvitationsReceived sets the handler for the GetInvitationsReceived method

func (*Protocol) SetHandlerGetInvitationsSent

func (protocol *Protocol) SetHandlerGetInvitationsSent(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32) (*nex.RMCMessage, *nex.Error))

SetHandlerGetInvitationsSent sets the handler for the GetInvitationsSent method

func (*Protocol) SetHandlerGetParticipants

func (protocol *Protocol) SetHandlerGetParticipants(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32) (*nex.RMCMessage, *nex.Error))

SetHandlerGetParticipants sets the handler for the GetParticipants method

func (*Protocol) SetHandlerGetParticipantsURLs

func (protocol *Protocol) SetHandlerGetParticipantsURLs(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32) (*nex.RMCMessage, *nex.Error))

SetHandlerGetParticipantsURLs sets the handler for the GetParticipantsURLs method

func (*Protocol) SetHandlerGetPendingDeletions

func (protocol *Protocol) SetHandlerGetPendingDeletions(handler func(err error, packet nex.PacketInterface, callID uint32, uiReason types.UInt32, resultRange types.ResultRange) (*nex.RMCMessage, *nex.Error))

SetHandlerGetPendingDeletions sets the handler for the GetPendingDeletions method

func (*Protocol) SetHandlerGetSessionURL

func (protocol *Protocol) SetHandlerGetSessionURL(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32) (*nex.RMCMessage, *nex.Error))

SetHandlerGetSessionURL sets the handler for the GetSessionURL method

func (*Protocol) SetHandlerGetSessionURLs

func (protocol *Protocol) SetHandlerGetSessionURLs(handler func(err error, packet nex.PacketInterface, callID uint32, gid types.UInt32) (*nex.RMCMessage, *nex.Error))

SetHandlerGetSessionURLs sets the handler for the GetSessionURLs method

func (*Protocol) SetHandlerGetState

func (protocol *Protocol) SetHandlerGetState(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32) (*nex.RMCMessage, *nex.Error))

SetHandlerGetState sets the handler for the GetState method

func (*Protocol) SetHandlerGetStats

func (protocol *Protocol) SetHandlerGetStats(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, lstParticipants types.List[types.PID], lstColumns types.Buffer) (*nex.RMCMessage, *nex.Error))

SetHandlerGetStats sets the handler for the GetStats method

func (*Protocol) SetHandlerInvite

func (protocol *Protocol) SetHandlerInvite(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, lstPrincipals types.List[types.PID], strMessage types.String) (*nex.RMCMessage, *nex.Error))

SetHandlerInvite sets the handler for the Invite method

func (*Protocol) SetHandlerLaunchSession

func (protocol *Protocol) SetHandlerLaunchSession(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, strURL types.String) (*nex.RMCMessage, *nex.Error))

SetHandlerLaunchSession sets the handler for the LaunchSession method

func (*Protocol) SetHandlerMigrateGatheringOwnership

func (protocol *Protocol) SetHandlerMigrateGatheringOwnership(handler func(err error, packet nex.PacketInterface, callID uint32, gid types.UInt32, lstPotentialNewOwnersID types.List[types.PID], participantsOnly types.Bool) (*nex.RMCMessage, *nex.Error))

SetHandlerMigrateGatheringOwnership sets the handler for the MigrateGatheringOwnership method

func (*Protocol) SetHandlerMigrateGatheringOwnershipV1

func (protocol *Protocol) SetHandlerMigrateGatheringOwnershipV1(handler func(err error, packet nex.PacketInterface, callID uint32, gid types.UInt32, lstPotentialNewOwnersID types.List[types.PID]) (*nex.RMCMessage, *nex.Error))

SetHandlerMigrateGatheringOwnershipV1 sets the handler for the MigrateGatheringOwnershipV1 method

func (*Protocol) SetHandlerParticipate

func (protocol *Protocol) SetHandlerParticipate(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, strMessage types.String) (*nex.RMCMessage, *nex.Error))

SetHandlerParticipate sets the handler for the Participate method

func (*Protocol) SetHandlerRegisterGathering

func (protocol *Protocol) SetHandlerRegisterGathering(handler func(err error, packet nex.PacketInterface, callID uint32, anyGathering match_making_types.GatheringHolder) (*nex.RMCMessage, *nex.Error))

SetHandlerRegisterGathering sets the handler for the RegisterGathering method

func (*Protocol) SetHandlerRegisterLocalURL

func (protocol *Protocol) SetHandlerRegisterLocalURL(handler func(err error, packet nex.PacketInterface, callID uint32, gid types.UInt32, url types.StationURL) (*nex.RMCMessage, *nex.Error))

SetHandlerRegisterLocalURL sets the handler for the RegisterLocalURL method

func (*Protocol) SetHandlerRegisterLocalURLs

func (protocol *Protocol) SetHandlerRegisterLocalURLs(handler func(err error, packet nex.PacketInterface, callID uint32, gid types.UInt32, lstURLs types.List[types.StationURL]) (*nex.RMCMessage, *nex.Error))

SetHandlerRegisterLocalURLs sets the handler for the RegisterLocalURLs method

func (*Protocol) SetHandlerReportStats

func (protocol *Protocol) SetHandlerReportStats(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, lstStats types.List[match_making_types.GatheringStats]) (*nex.RMCMessage, *nex.Error))

SetHandlerReportStats sets the handler for the ReportStats method

func (*Protocol) SetHandlerSetState

func (protocol *Protocol) SetHandlerSetState(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, uiNewState types.UInt32) (*nex.RMCMessage, *nex.Error))

SetHandlerSetState sets the handler for the SetState method

func (*Protocol) SetHandlerUnregisterGathering

func (protocol *Protocol) SetHandlerUnregisterGathering(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32) (*nex.RMCMessage, *nex.Error))

SetHandlerUnregisterGathering sets the handler for the UnregisterGathering method

func (*Protocol) SetHandlerUnregisterGatherings

func (protocol *Protocol) SetHandlerUnregisterGatherings(handler func(err error, packet nex.PacketInterface, callID uint32, lstGatherings types.List[types.UInt32]) (*nex.RMCMessage, *nex.Error))

SetHandlerUnregisterGatherings sets the handler for the UnregisterGatherings method

func (*Protocol) SetHandlerUpdateGathering

func (protocol *Protocol) SetHandlerUpdateGathering(handler func(err error, packet nex.PacketInterface, callID uint32, anyGathering match_making_types.GatheringHolder) (*nex.RMCMessage, *nex.Error))

SetHandlerUpdateGathering sets the handler for the UpdateGathering method

func (*Protocol) SetHandlerUpdateGatheringOwnership

func (protocol *Protocol) SetHandlerUpdateGatheringOwnership(handler func(err error, packet nex.PacketInterface, callID uint32, gid types.UInt32, participantsOnly types.Bool) (*nex.RMCMessage, *nex.Error))

SetHandlerUpdateGatheringOwnership sets the handler for the UpdateGatheringOwnership method

func (*Protocol) SetHandlerUpdateSessionHost

func (protocol *Protocol) SetHandlerUpdateSessionHost(handler func(err error, packet nex.PacketInterface, callID uint32, gid types.UInt32, isMigrateOwner types.Bool) (*nex.RMCMessage, *nex.Error))

SetHandlerUpdateSessionHost sets the handler for the UpdateSessionHost method

func (*Protocol) SetHandlerUpdateSessionHostV1

func (protocol *Protocol) SetHandlerUpdateSessionHostV1(handler func(err error, packet nex.PacketInterface, callID uint32, gid types.UInt32) (*nex.RMCMessage, *nex.Error))

SetHandlerUpdateSessionHostV1 sets the handler for the UpdateSessionHostV1 method

func (*Protocol) SetHandlerUpdateSessionURL

func (protocol *Protocol) SetHandlerUpdateSessionURL(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering types.UInt32, strURL types.String) (*nex.RMCMessage, *nex.Error))

SetHandlerUpdateSessionURL sets the handler for the UpdateSessionURL method

Directories

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

Jump to

Keyboard shortcuts

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