C# Class OpenMetaverse.PacketEventDictionary

Registers, unregisters, and fires events generated by incoming packets
ファイルを表示 Open project: 3di/3di-viewer-rei-libs Class Usage Examples

Public Properties

Property Type Description
Client GridClient

Public Methods

Method 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

Method 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 method

Default constructor
public PacketEventDictionary ( GridClient client ) : System
client GridClient
return System

RegisterEvent() public method

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
return void

UnregisterEvent() public method

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
return void

Property Details

Client public_oe property

Reference to the GridClient object
public GridClient,OpenMetaverse Client
return GridClient