Documentation ¶
Overview ¶
Package protocol implements the Match Making Ext protocol
Package protocol implements the Match Making Ext protocol ¶
Package protocol implements the Match Making Ext protocol ¶
Package protocol implements the Match Making Ext protocol ¶
Package protocol implements the Match Making Ext protocol ¶
Package protocol implements the Match Making Ext protocol ¶
Package protocol implements the Match Making Ext protocol
Index ¶
- Constants
- type Interface
- type Protocol
- func (protocol *Protocol) Endpoint() nex.EndpointInterface
- func (protocol *Protocol) HandlePacket(packet nex.PacketInterface)
- func (protocol *Protocol) SetEndpoint(endpoint nex.EndpointInterface)
- func (protocol *Protocol) SetHandlerDeleteFromDeletions(...)
- func (protocol *Protocol) SetHandlerEndParticipation(...)
- func (protocol *Protocol) SetHandlerGetDetailedParticipants(...)
- func (protocol *Protocol) SetHandlerGetGatheringRelations(...)
- func (protocol *Protocol) SetHandlerGetParticipants(...)
- func (protocol *Protocol) SetHandlerGetParticipantsURLs(...)
Constants ¶
const ( // ProtocolID is the protocol ID for the MatchMakingExt protocol ProtocolID = 0x32 // MethodEndParticipation is the method ID for the method EndParticipation MethodEndParticipation = 0x1 // MethodGetParticipants is the method ID for the method GetParticipants MethodGetParticipants = 0x2 // MethodGetDetailedParticipants is the method ID for the method GetDetailedParticipants MethodGetDetailedParticipants = 0x3 // MethodGetParticipantsURLs is the method ID for the method GetParticipantsURLs MethodGetParticipantsURLs = 0x4 // MethodGetGatheringRelations is the method ID for the method GetGatheringRelations MethodGetGatheringRelations = 0x5 // MethodDeleteFromDeletions is the method ID for the method DeleteFromDeletions MethodDeleteFromDeletions = 0x6 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { Endpoint() nex.EndpointInterface SetEndpoint(endpoint nex.EndpointInterface) SetHandlerEndParticipation(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering *types.PrimitiveU32, strMessage *types.String) (*nex.RMCMessage, *nex.Error)) SetHandlerGetParticipants(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering *types.PrimitiveU32, bOnlyActive *types.PrimitiveBool) (*nex.RMCMessage, *nex.Error)) SetHandlerGetDetailedParticipants(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering *types.PrimitiveU32, bOnlyActive *types.PrimitiveBool) (*nex.RMCMessage, *nex.Error)) SetHandlerGetParticipantsURLs(handler func(err error, packet nex.PacketInterface, callID uint32, lstGatherings *types.List[*types.PrimitiveU32]) (*nex.RMCMessage, *nex.Error)) SetHandlerGetGatheringRelations(handler func(err error, packet nex.PacketInterface, callID uint32, id *types.PrimitiveU32, descr *types.String) (*nex.RMCMessage, *nex.Error)) SetHandlerDeleteFromDeletions(handler func(err error, packet nex.PacketInterface, callID uint32, lstDeletions *types.List[*types.PrimitiveU32], pid *types.PID) (*nex.RMCMessage, *nex.Error)) }
Interface implements the methods present on the Match Making Ext protocol struct
type Protocol ¶
type Protocol struct { EndParticipation func(err error, packet nex.PacketInterface, callID uint32, idGathering *types.PrimitiveU32, strMessage *types.String) (*nex.RMCMessage, *nex.Error) GetParticipants func(err error, packet nex.PacketInterface, callID uint32, idGathering *types.PrimitiveU32, bOnlyActive *types.PrimitiveBool) (*nex.RMCMessage, *nex.Error) GetDetailedParticipants func(err error, packet nex.PacketInterface, callID uint32, idGathering *types.PrimitiveU32, bOnlyActive *types.PrimitiveBool) (*nex.RMCMessage, *nex.Error) GetParticipantsURLs func(err error, packet nex.PacketInterface, callID uint32, lstGatherings *types.List[*types.PrimitiveU32]) (*nex.RMCMessage, *nex.Error) GetGatheringRelations func(err error, packet nex.PacketInterface, callID uint32, id *types.PrimitiveU32, descr *types.String) (*nex.RMCMessage, *nex.Error) DeleteFromDeletions func(err error, packet nex.PacketInterface, callID uint32, lstDeletions *types.List[*types.PrimitiveU32], pid *types.PID) (*nex.RMCMessage, *nex.Error) Patches nex.ServiceProtocol PatchedMethods []uint32 // contains filtered or unexported fields }
Protocol handles the MatchMakingExt 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) SetHandlerDeleteFromDeletions ¶
func (protocol *Protocol) SetHandlerDeleteFromDeletions(handler func(err error, packet nex.PacketInterface, callID uint32, lstDeletions *types.List[*types.PrimitiveU32], pid *types.PID) (*nex.RMCMessage, *nex.Error))
SetHandlerDeleteFromDeletions sets the handler for the DeleteFromDeletions method
func (*Protocol) SetHandlerEndParticipation ¶
func (protocol *Protocol) SetHandlerEndParticipation(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering *types.PrimitiveU32, strMessage *types.String) (*nex.RMCMessage, *nex.Error))
SetHandlerEndParticipation sets the handler for the EndParticipation method
func (*Protocol) SetHandlerGetDetailedParticipants ¶
func (protocol *Protocol) SetHandlerGetDetailedParticipants(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering *types.PrimitiveU32, bOnlyActive *types.PrimitiveBool) (*nex.RMCMessage, *nex.Error))
SetHandlerGetDetailedParticipants sets the handler for the GetDetailedParticipants method
func (*Protocol) SetHandlerGetGatheringRelations ¶
func (protocol *Protocol) SetHandlerGetGatheringRelations(handler func(err error, packet nex.PacketInterface, callID uint32, id *types.PrimitiveU32, descr *types.String) (*nex.RMCMessage, *nex.Error))
SetHandlerGetGatheringRelations sets the handler for the GetGatheringRelations method
func (*Protocol) SetHandlerGetParticipants ¶
func (protocol *Protocol) SetHandlerGetParticipants(handler func(err error, packet nex.PacketInterface, callID uint32, idGathering *types.PrimitiveU32, bOnlyActive *types.PrimitiveBool) (*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, lstGatherings *types.List[*types.PrimitiveU32]) (*nex.RMCMessage, *nex.Error))
SetHandlerGetParticipantsURLs sets the handler for the GetParticipantsURLs method