Zookeeper::connect
(PECL zookeeper >= 0.2.0)
Zookeeper::connect — Create a handle used to communicate with zookeeper
Parameters
host
-
Comma separated host:port pairs, each corresponding to a zk server. e.g. "127.0.0.1:3000,127.0.0.1:3001,127.0.0.1:3002"
watcher_cb
-
The global watcher callback function. When notifications are triggered this function will be invoked.
recv_timeout
-
The timeout for this session, only valid if the connection is currently connected (ie. last watcher state is ZOO_CONNECTED_STATE).
Return Values
No value is returned.
Errors/Exceptions
This method emits PHP error/warning when parameters count or types are wrong or could not init instance.