gxPLApplication is the central element of a xPL application. This class performs all operations to open and close the xPL network, send and receive messages. An application is needed to create devices.
int gxPLAppClose |
( |
gxPLApplication * |
app | ) |
|
Connection type.
- Parameters
-
app | pointer to a gxPLApplication object |
- Returns
- the type
int gxPLAppDisableAllDevices |
( |
gxPLApplication * |
app | ) |
|
Stop all devices.
Usually in preparation for shutdown, but that isn't the only possible reason. It is not necessary to call this function before calling gxPLAppClose()
- Parameters
-
- Returns
Opens a new gxPLApplication object.
- Parameters
-
setting | pointer to a configuration, this configuration can be modified by the function to return the actual configuration. |
- Returns
- the object or NULL if error occurs
- Examples:
- logger/gxpl-logger.c, and sender/gxpl-sender.c.
int gxPLAppPoll |
( |
gxPLApplication * |
app, |
|
|
int |
timeout_ms |
|
) |
| |
Polling event of an application.
- Parameters
-
app | pointer to a gxPLApplication object |
timeout_ms | waiting period in ms before output if no event occurs |
- Returns
- 0, -1 if an error occurs
- Examples:
- logger/gxpl-logger.c.
Returns application setting.
- Parameters
-
app | pointer to a gxPLApplication object |
- Returns
- the setting or NULL if error occurs