Declaring a Callback Function
Declare a callback that conforms to the tibas_onAction typedef (C API) or the Router interface (Java API).
The tibas_onAction callback has the following function prototype:
typedef void (TIBAS_CALL_API *tibas_onRoute) ( tibasRouter router, tibasAction action, tibasActionResult result);
where:
- router
- Specifies the router object returned by the tibasSpace_RouterCreate() function.
- action
- Returns the action that occurred over the routed connection.
- result
- Returns the result of the action.
In Java there is no need to declare a function prototype: the Router interface provides for methods referenced in the callback.
Copyright © Cloud Software Group, Inc. All rights reserved.