WYRDTEK Home Features Reference Downloads About



int es_mb_savebuffer( struct es_mbd *def, struct es_wb *wbuf );


struct es_mbd *def Database definitionto 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_mbd_savebuffer is a wrapper function over es_mbd_save() for serializing a database definition to an arbitrary file descriptor ( usually a socket ). The definition 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_mbd]