C# Class OpenMetaverse.PacketEventDictionary

Registers, unregisters, and fires events generated by incoming packets
Afficher le fichier Open project: 3di/3di-viewer-rei-libs Class Usage Examples

Méthodes publiques

Свойство Type Description
Client GridClient

Méthodes publiques

Méthode Description
PacketEventDictionary ( GridClient client ) : System

Default constructor

RegisterEvent ( PacketType packetType, NetworkManager eventHandler ) : void

Register an event handler

Use PacketType.Default to fire this event on every incoming packet

UnregisterEvent ( PacketType packetType, NetworkManager eventHandler ) : void

Unregister an event handler

Private Methods

Méthode Description
BeginRaiseEvent ( PacketType packetType, Packet packet, Simulator simulator ) : void

Fire the events registered for this packet type asynchronously

RaiseEvent ( PacketType packetType, Packet packet, Simulator simulator ) : void

Fire the events registered for this packet type synchronously

ThreadPoolDelegate ( Object state ) : void

Method Details

PacketEventDictionary() public méthode

Default constructor
public PacketEventDictionary ( GridClient client ) : System
client GridClient
Résultat System

RegisterEvent() public méthode

Register an event handler
Use PacketType.Default to fire this event on every incoming packet
public RegisterEvent ( PacketType packetType, NetworkManager eventHandler ) : void
packetType PacketType Packet type to register the handler for
eventHandler NetworkManager Callback to be fired
Résultat void

UnregisterEvent() public méthode

Unregister an event handler
public UnregisterEvent ( PacketType packetType, NetworkManager eventHandler ) : void
packetType PacketType Packet type to unregister the handler for
eventHandler NetworkManager Callback to be unregistered
Résultat void

Property Details

Client public_oe property

Reference to the GridClient object
public GridClient,OpenMetaverse Client
Résultat GridClient