OpenMetaverse Protocol Library Developers API Documentation
RegisterCallback Method (type, callback, isAsync)
NamespacesOpenMetaverseNetworkManagerRegisterCallback(PacketType, EventHandler < (Of < <' ( PacketReceivedEventArgs > ) > > ) , Boolean)
Register an event handler for a packet. This is a low level event interface and should only be used if you are doing something not supported in the library
Declaration Syntax
C#
public
void
RegisterCallback(

PacketType
type,

EventHandler<

PacketReceivedEventArgs>
callback,

bool
isAsync
)
Parameters
type ( PacketType)
Packet type to trigger events for
callback ( EventHandler < (Of < ( <' PacketReceivedEventArgs > ) > ) > )
Callback to fire when a packet of this type is received
isAsync ( Boolean)
True if the callback should be ran asynchronously. Only set this to false (synchronous for callbacks that will always complete quickly)
Remarks
If any callback for a packet type is marked as asynchronous, all callbacks for that packet type will be fired asynchronously

Assembly: OpenMetaverse(Module: OpenMetaverse.dll) Version: 0.9.3.3318 (0.9.3.3318)