WYRDTEK Home Features Reference Downloads About



int es_mb_savebuffer( struct es_mb *db, struct es_wb *wbuf );


struct es_mb *db Database to be saved.
struct es_wb *wbuf File descriptor write buffer.

Return Codes

ES_ERROR_NONE Success. No errors.
ES_ERROR_FAILTOSAVE Failed to save. Check errno for any system errors.


es_mb_savebuffer is a wrapper function over es_mb_save() for serializing a database to an arbitrary file descriptor ( usually a socket ). The database is serialized to struct es_wb *wbuf which must previously have been constructed with respect to some file descriptor.

[Back To Reference] [Back To Reference/es_mb]