SubscribeRequest(String,RequestCallback,IntPtr)

Subscribes to the request topic named topic.

The callback parameter specifies the function to call when requests are received.

The userData parameter is a generic user-pointer sent to the callback when invoked.

The call is synchronous.

See CheckForEvents for more information.

Parameters

  • topic : string : Name of the request topic you’re subscribing to.

  • callback : RequestCallback : The RequestCallback that specifies the function to call when the data is available.

  • userData : IntPtr : The userData sent to the callback when invoked.

Return

Status : Status that indicates if the operation succeeds.