WYRDTEK Home Features Reference Downloads About



int es_mbd_loadbuffer( struct es_mbd *def, struct es_rb *rbuf );


struct es_mbd *def Database definition to be loaded.
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_mbd_loadbuffer is a wrapper function over es_mbd_load() for de-serializing a database definition from an arbitrary file descriptor ( usually a socket ). The definition is de-serialized from struct es_rb *wbuf which must previously have been constructed with respect to some file descriptor.

[Back To Reference] [Back To Reference/es_mbd]