DataSource for C SDK
6.2.20.310828
|
Functions | |
void | ds_send_data (ds_data_t *data) |
Send the data object to all connected DataSource peers. More... | |
void | ds_send_data_direct (ds_data_t *data) |
Send the data object to all connected DataSource peers. More... | |
void | ds_send_data_no_free (ds_data_t *data) |
Send the data object to all connected DataSource peers. More... | |
void | ds_send_data_to_peer (int peer, ds_data_t *data) |
Send the data object to a specific peer. More... | |
void | ds_send_data_to_peer_no_free (int peer, ds_data_t *data) |
Send the data object to a specific peer. More... | |
These functions are for sending data objects to DataSource peers. Once an object has been created and some fields and values added to it, it can be sent to a number of DataSource peers. This can either be to all connected peers using ds_send_data() or to a specific peer using ds_send_data_to_peer(). Sending to a specific peer is typically used by active DataSources in response to a request for an object.
void ds_send_data | ( | ds_data_t * | data | ) |
Send the data object to all connected DataSource peers.
data | The data object to send |
This function automatically frees the data object (i.e. you do not need to call ds_free_data() after using this function).
void ds_send_data_direct | ( | ds_data_t * | data | ) |
Send the data object to all connected DataSource peers.
data | The data object to send |
This function automatically frees the data object (i.e. you do not need to call ds_free_data() after using this function).
void ds_send_data_no_free | ( | ds_data_t * | data | ) |
Send the data object to all connected DataSource peers.
data | The data object to send |
This function automatically does not free the data object (i.e. you may need to call ds_free_data() after using this function).
void ds_send_data_to_peer | ( | int | peer, |
ds_data_t * | data | ||
) |
Send the data object to a specific peer.
peer | Peer number to send to |
data | The data object to send |
This function automatically frees the data object (i.e. you do not need to call ds_free_data() after using this function).
add-peer
entries in the configuration file. The first add-peer is for peer 0, the next peer 1 and so on.void ds_send_data_to_peer_no_free | ( | int | peer, |
ds_data_t * | data | ||
) |
Send the data object to a specific peer.
peer | Peer number to send to |
data | The data object to send |
This function automatically does not free the data object (i.e. you may need to call ds_free_data() after using this function).
add-peer
entries in the configuration file. The first add-peer is for peer 0, the next peer 1 and so on.