DataSource for C SDK
7.1.28.98838-0467ac22
|
Functions | |
void | ds_send_nodata (const char *subject, unsigned short flags) |
Send a "no data" message to all connected DataSource peers. More... | |
void | ds_send_nodata_direct (const char *subject, unsigned short flags) |
Send a "no data" message to all connected DataSource peers. More... | |
void | ds_send_nodata_to_peer (int peer, const char *subject, unsigned short flags) |
Send a "no data" message to a specific DataSource pper. More... | |
These functions allow a DataSource to inform its peers that an object does not exist. This can be in response to an active request, in which case an F_NOTFOUND flag is typically sent. It could be in response to some external event where the object should be deleted, an F_DELETEOBJECT flag might then be sent to the peers to instruct that the object should be deleted.
void ds_send_nodata | ( | const char * | subject, |
unsigned short | flags | ||
) |
Send a "no data" message to all connected DataSource peers.
subject | The name of the object |
flags | The type of "no data" message to send |
This function is used for signalling that an object is not found
void ds_send_nodata_direct | ( | const char * | subject, |
unsigned short | flags | ||
) |
Send a "no data" message to all connected DataSource peers.
subject | The name of the object |
flags | The type of "no data" message to send |
This function is used for signalling that an object is not found
void ds_send_nodata_to_peer | ( | int | peer, |
const char * | subject, | ||
unsigned short | flags | ||
) |
Send a "no data" message to a specific DataSource pper.
peer | The DataSource peer to send the message to |
subject | The name of the object |
flags | The type of "no data" message to send |
This function is used for signalling that an object is not found
add-peer
entries in the configuration file. The first add-peer is for peer 0, the next peer 1 and so on.