\brief close the zookeeper handle and free up any resources.
After this call, the client session will no longer be valid. The function
will flush any outstanding send requests before return. As a result it may
block.
This method should only be called only once on a zookeeper handle. Calling
twice will cause undefined (and probably undesirable behavior). Calling any other
zookeeper method after calling close is undefined behaviour and should be avoided.
\param zh the zookeeper handle obtained by a call to \ref zookeeper_init
\return a result code. Regardless of the error code returned, the zhandle
will be destroyed and all resources freed.
ZOK - success
ZBADARGUMENTS - invalid input parameters
ZMARSHALLINGERROR - failed to marshall a request; possibly, out of memory
ZOPERATIONTIMEOUT - failed to flush the buffers within the specified timeout.
ZCONNECTIONLOSS - a network error occured while attempting to send request to server
ZSYSTEMERROR -- a system (OS) error occured; it's worth checking errno to get details
\brief close the zookeeper handle and free up any resources.
After this call, the client session will no longer be valid. The function will flush any outstanding send requests before return. As a result it may block.
This method should only be called only once on a zookeeper handle. Calling twice will cause undefined (and probably undesirable behavior). Calling any other zookeeper method after calling close is undefined behaviour and should be avoided.
\param zh the zookeeper handle obtained by a call to \ref zookeeper_init \return a result code. Regardless of the error code returned, the zhandle will be destroyed and all resources freed.
ZOK - success ZBADARGUMENTS - invalid input parameters ZMARSHALLINGERROR - failed to marshall a request; possibly, out of memory ZOPERATIONTIMEOUT - failed to flush the buffers within the specified timeout. ZCONNECTIONLOSS - a network error occured while attempting to send request to server ZSYSTEMERROR -- a system (OS) error occured; it's worth checking errno to get details