Tutorial or example for zookeeper C binding [closed]

青春壹個敷衍的年華 提交于 2020-01-03 07:33:06

问题


I am trying to create an application that uses the zookeeper C/C++ api. I would like to get a few examples on how they are used. I perused through the official documentation, but a lot of details are missing, many sections are listed as TODOs. I looked through the code examples, but there are hardly any comments, which makes it difficult to understand what's going on. Could anybody help with some documentation specifically for creating C bindings?

FYI: I checked the usual channels, google, official documentation etc.


回答1:


Zookeeper client C binding are pretty close to Java bindings. So you can use http://zookeeper.apache.org/doc/r3.3.4/api/index.html to familiarize with concepts. Also this page http://zookeeper.apache.org/doc/r3.3.4/zookeeperProgrammers.html contains general description with several examples in C.

But I am afraid there aren't much C bindings specific docs out there. I was in the same situation some time ago myself. I was forced to read source code to answer all my questions.



来源:https://stackoverflow.com/questions/11573538/tutorial-or-example-for-zookeeper-c-binding

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!