Documentation ¶
Overview ¶
Package protocol implements the Pokemon GEN 6 Matchmake Extension protocol
Package protocol implements the Pokemon GEN 6 Matchmake Extension protocol
Index ¶
Constants ¶
View Source
const ( // ProtocolID is the protocol ID for the Matchmake Extension (Pokemon GEN 6) protocol. ID is the same as the Matchmake Extension protocol ProtocolID = 0x6D // MethodClearMyPreviouslyMatchedUserCache is the method ID for the method ClearMyPreviouslyMatchedUserCache MethodClearMyPreviouslyMatchedUserCache = 0x22 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Protocol ¶
type Protocol struct { ClearMyPreviouslyMatchedUserCache func(err error, packet nex.PacketInterface, callID uint32) (*nex.RMCMessage, *nex.Error) // contains filtered or unexported fields }
Protocol stores all the RMC method handlers for the Matchmake Extension (Pokemon GEN 6) protocol and listens for requests Embeds the Matchmake Extension protocol
func NewProtocol ¶
func NewProtocol(endpoint nex.EndpointInterface) *Protocol
NewProtocol returns a new Matchmake Extension (Pokemon GEN 6) protocol
func (*Protocol) HandlePacket ¶
func (protocol *Protocol) HandlePacket(packet nex.PacketInterface)
HandlePacket sends the packet to the correct RMC method handler
Click to show internal directories.
Click to hide internal directories.