com.onlineobject.objectnet Namespace

NetworkManager..::..RegisterEvent Method

Registers a callback for a specific network event.

Namespace:  com.onlineobject.objectnet
Assembly:  ObjectNetAPI (in ObjectNetAPI.dll)

Syntax


public static void RegisterEvent(

	int eventCode,

	Action<IDataStream> callBack

)

Parameters

eventCode
Type: Int32
The event code to register the callback for.
callBack
Type: Action<(Of <(<'IDataStream>)>)>
The callback action to be invoked when the event occurs.