|
Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages
Client API |
Classes | |
struct | playerc_device_info_t |
Info about an available (but not necessarily subscribed) device. More... | |
struct | _playerc_client_t |
Client object data. More... | |
Typedefs | |
typedef void(* | playerc_putdata_fn_t )(void *device, char *header, char *data, size_t len) |
Typedef for proxy callback function. | |
typedef void(* | playerc_callback_fn_t )(void *data) |
Typedef for proxy callback function. | |
typedef _playerc_client_t | playerc_client_t |
Client object data. | |
Functions | |
playerc_client_t * | playerc_client_create (playerc_mclient_t *mclient, const char *host, int port) |
Create a client object. | |
void | playerc_client_destroy (playerc_client_t *client) |
Destroy a client object. | |
int | playerc_client_connect (playerc_client_t *client) |
Connect to the server. | |
int | playerc_client_disconnect (playerc_client_t *client) |
Disconnect from the server. | |
int | playerc_client_datamode (playerc_client_t *client, int mode) |
Change the server's data delivery mode. | |
int | playerc_client_requestdata (playerc_client_t *client) |
Request a round of data. | |
int | playerc_client_datafreq (playerc_client_t *client, int freq) |
Change the server's data delivery frequency. | |
int | playerc_client_adddevice (playerc_client_t *client, struct _playerc_device_t *device) |
Add a device proxy. | |
int | playerc_client_deldevice (playerc_client_t *client, struct _playerc_device_t *device) |
Remove a device proxy. | |
int | playerc_client_addcallback (playerc_client_t *client, struct _playerc_device_t *device, playerc_callback_fn_t callback, void *data) |
Add user callbacks (called when new data arrives). | |
int | playerc_client_delcallback (playerc_client_t *client, struct _playerc_device_t *device, playerc_callback_fn_t callback, void *data) |
Remove user callbacks (called when new data arrives). | |
int | playerc_client_get_devlist (playerc_client_t *client) |
Get the list of available device ids. | |
int | playerc_client_subscribe (playerc_client_t *client, int code, int index, int access, char *drivername, size_t len) |
Subscribe a device. | |
int | playerc_client_unsubscribe (playerc_client_t *client, int code, int index) |
Unsubscribe a device. | |
int | playerc_client_request (playerc_client_t *client, struct _playerc_device_t *device, void *req_data, int req_len, void *rep_data, int rep_len) |
Issue a request to the server and await a reply (blocking). | |
int | playerc_client_peek (playerc_client_t *client, int timeout) |
Test to see if there is pending data. | |
void * | playerc_client_read (playerc_client_t *client) |
Read data from the server (blocking). | |
int | playerc_client_write (playerc_client_t *client, struct _playerc_device_t *device, void *cmd, int len) |
Write data to the server. |
|
Typedef for proxy callback function.
|
|
Typedef for proxy callback function.
|
|
Client object data.
|
|
Create a client object.
|
|
Destroy a client object.
|
|
Connect to the server.
|
|
Disconnect from the server.
|
|
Change the server's data delivery mode.
|
|
Request a round of data.
Use playerc_client_datamode to change modes. |
|
Change the server's data delivery frequency.
|
|
Add a device proxy.
For internal use only.
|
|
Remove a device proxy.
For internal use only.
|
|
Add user callbacks (called when new data arrives).
For internal use only.
|
|
Remove user callbacks (called when new data arrives).
For internal use only.
|
|
Get the list of available device ids. This function queries the server for the list of available devices, and write result to the devinfos list in the client object.
|
|
Subscribe a device.
For internal use only.
|
|
Unsubscribe a device.
For internal use only.
|
|
Issue a request to the server and await a reply (blocking).
For internal use only.
|
|
Test to see if there is pending data.
|
|
Read data from the server (blocking).
|
|
Write data to the server.
For internal use only.
|