Method | Description | |
---|---|---|
PacketEventDictionary ( ) : System |
Default constructor
|
|
RegisterEvent ( PacketType packetType, PacketCallback eventHandler ) : void |
Register an event handler Use PacketType.Default to fire this event on every incoming packet |
|
UnregisterEvent ( PacketType packetType, PacketCallback eventHandler ) : void |
Unregister an event handler
|
Method | Description | |
---|---|---|
BeginRaiseEvent ( PacketType packetType, |
Fire the events registered for this packet type asynchronously
|
|
ThreadPoolDelegate ( Object state ) : void |
public RegisterEvent ( PacketType packetType, PacketCallback eventHandler ) : void | ||
packetType | PacketType | Packet type to register the handler for |
eventHandler | PacketCallback | Callback to be fired |
return | void |
public UnregisterEvent ( PacketType packetType, PacketCallback eventHandler ) : void | ||
packetType | PacketType | Packet type to unregister the handler for |
eventHandler | PacketCallback | Callback to be unregistered |
return | void |