WYRDTEK Home Features Reference Downloads About



int es_mb_loadbuffer( struct es_mb *db, struct es_rb *rbuf );


struct es_mb *db Database to be loadd.
struct es_rb *rbuf File descriptor read buffer.

Return Codes

ES_ERROR_NONE Success. No errors.
ES_ERROR_FAILTOLOAD Failed to load. Check errno for any system errors.


es_mb_loadbuffer is a wrapper function over es_mb_load() for de-serializing a database from an arbitrary file descriptor ( usually a socket ). The database is de-serialized from struct es_rb *rbuf which must previously have been constructed with respect to some file descriptor.

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