\brief lists the children of a node and get its stat synchronously.
This function is similar to \ref zoo_get_children except it allows one specify
a watcher object rather than a boolean watch flag.
This function is new in version 3.3.0
\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 watcher if non-null, a watch will be set at the server to notify
the client if the node changes.
\param watcherCtx user specific data, will be passed to the watcher callback.
Unlike the global context set by \ref zookeeper_init, this watcher context
is associated with the given instance of the watcher only.
\param strings return value of children paths.
\param stat return value of node stat.
\return the return code of the function.
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 ZOO_SESSION_EXPIRED_STATE or ZOO_AUTH_FAILED_STATE
ZMARSHALLINGERROR - failed to marshall a request; possibly, out of memory
\brief lists the children of a node and get its stat synchronously.
This function is similar to \ref zoo_get_children except it allows one specify a watcher object rather than a boolean watch flag.
This function is new in version 3.3.0
\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 watcher if non-null, a watch will be set at the server to notify the client if the node changes. \param watcherCtx user specific data, will be passed to the watcher callback. Unlike the global context set by \ref zookeeper_init, this watcher context is associated with the given instance of the watcher only. \param strings return value of children paths. \param stat return value of node stat. \return the return code of the function. 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 ZOO_SESSION_EXPIRED_STATE or ZOO_AUTH_FAILED_STATE ZMARSHALLINGERROR - failed to marshall a request; possibly, out of memory