Messages sent by the watch on the BlobDB sync endpoint.
More...
|
| BlobDBToken | blob_db_endpoint_send_write (BlobDBId db_id, time_t last_updated, const void *key, int key_len, const void *val, int val_len) |
| | Send a WRITE message for a record.
|
| |
| BlobDBToken | blob_db_endpoint_send_writeback (BlobDBId db_id, time_t last_updated, const void *key, int key_len, const void *val, int val_len) |
| | Send a WRITEBACK message for a record.
|
| |
| void | blob_db_endpoint_send_sync_done (BlobDBId db_id) |
| | Send a SYNC_DONE message for a database.
|
| |
Messages sent by the watch on the BlobDB sync endpoint.
Messages go to the system session; when no session is connected they are dropped.
◆ blob_db_endpoint_send_sync_done()
| void blob_db_endpoint_send_sync_done |
( |
BlobDBId |
db_id | ) |
|
Send a SYNC_DONE message for a database.
- Parameters
-
◆ blob_db_endpoint_send_write()
| BlobDBToken blob_db_endpoint_send_write |
( |
BlobDBId |
db_id, |
|
|
time_t |
last_updated, |
|
|
const void * |
key, |
|
|
int |
key_len, |
|
|
const void * |
val, |
|
|
int |
val_len |
|
) |
| |
Send a WRITE message for a record.
- Parameters
-
| db_id | Database. |
| last_updated | Modification time of the record. |
| key | Key data. |
| key_len | Length of key in bytes. |
| val | Value data. |
| val_len | Length of val in bytes. |
- Returns
- Token of the message.
◆ blob_db_endpoint_send_writeback()
| BlobDBToken blob_db_endpoint_send_writeback |
( |
BlobDBId |
db_id, |
|
|
time_t |
last_updated, |
|
|
const void * |
key, |
|
|
int |
key_len, |
|
|
const void * |
val, |
|
|
int |
val_len |
|
) |
| |
Send a WRITEBACK message for a record.
- Parameters
-
| db_id | Database. |
| last_updated | Modification time of the record. |
| key | Key data. |
| key_len | Length of key in bytes. |
| val | Value data. |
| val_len | Length of val in bytes. |
- Returns
- Token of the message.