zoo_get

\brief gets the data associated with a node synchronously.

\param zh the zookeeper handle obtained by a call to \ref zookeeper_init \param path the name of the node. Expressed as a file name with slashes separating ancestors of the node. \param watch if nonzero, a watch will be set at the server to notify the client if the node changes. \param buffer the buffer holding the node data returned by the server \param buffer_len is the size of the buffer pointed to by the buffer parameter. It'll be set to the actual data length upon return. If the data is NULL, length is -1. \param stat if not NULL, will hold the value of stat for the path on return. \return return value of the function call. ZOK operation completed successfully ZNONODE the node does not exist. ZNOAUTH the client does not have permission. ZBADARGUMENTS - invalid input parameters ZINVALIDSTATE - zhandle state is either in ZOO_SESSION_EXPIRED_STATE or ZOO_AUTH_FAILED_STATE ZMARSHALLINGERROR - failed to marshall a request; possibly, out of memory

extern (C)
int
zoo_get
(,
const char* path
,
int watch
,
char* buffer
,,)

Meta