Documentation ¶
Overview ¶
Package protocol implements the Screening protocol
Package protocol implements the Screening protocol ¶
Package protocol implements the Screening 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) SetHandlerReportDataStoreContent(...)
- func (protocol *Protocol) SetHandlerReportUser(...)
Constants ¶
View Source
const ( // ProtocolID is the protocol ID for the Screening protocol ProtocolID = 0x7C // MethodReportDataStoreContent is the method ID for the method ReportDataStoreContent MethodReportDataStoreContent = 0x1 // MethodReportUser is the method ID for the method ReportUser MethodReportUser = 0x2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { Endpoint() nex.EndpointInterface SetEndpoint(endpoint nex.EndpointInterface) SetHandlerReportDataStoreContent(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) (*nex.RMCMessage, *nex.Error)) SetHandlerReportUser(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) (*nex.RMCMessage, *nex.Error)) }
Interface implements the methods present on the Screening protocol struct
type Protocol ¶
type Protocol struct { ReportDataStoreContent func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) (*nex.RMCMessage, *nex.Error) // TODO - Unknown request/response format ReportUser func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) (*nex.RMCMessage, *nex.Error) // TODO - Unknown request/response format Patches nex.ServiceProtocol PatchedMethods []uint32 // contains filtered or unexported fields }
Protocol handles the Screening 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) SetHandlerReportDataStoreContent ¶
func (protocol *Protocol) SetHandlerReportDataStoreContent(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) (*nex.RMCMessage, *nex.Error))
SetHandlerReportDataStoreContent sets the handler for the ReportDataStoreContent method
func (*Protocol) SetHandlerReportUser ¶
func (protocol *Protocol) SetHandlerReportUser(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) (*nex.RMCMessage, *nex.Error))
SetHandlerReportUser sets the handler for the ReportUser method
Click to show internal directories.
Click to hide internal directories.