zookeeper_interest

\brief Returns the events that zookeeper is interested in.

\param zh the zookeeper handle obtained by a call to \ref zookeeper_init \param fd is the file descriptor of interest \param interest is an or of the ZOOKEEPER_WRITE and ZOOKEEPER_READ flags to indicate the I/O of interest on fd. \param tv a timeout value to be used with select/poll system call \return a result code. ZOK - success ZBADARGUMENTS - invalid input parameters ZINVALIDSTATE - zhandle state is either ZOO_SESSION_EXPIRED_STATE or ZOO_AUTH_FAILED_STATE ZCONNECTIONLOSS - a network error occured while attempting to establish a connection to the server ZMARSHALLINGERROR - failed to marshall a request; possibly, out of memory ZOPERATIONTIMEOUT - hasn't received anything from the server for 2/3 of the timeout value specified in zookeeper_init() ZSYSTEMERROR -- a system (OS) error occured; it's worth checking errno to get details

  1. int zookeeper_interest(zhandle_t* zh, SOCKET* fd, int* interest, timeval* tv)
    version(Windows)
    extern (C)
    int
    zookeeper_interest
    (,
    SOCKET* fd
    ,,
    timeval* tv
    )
  2. int zookeeper_interest(zhandle_t* zh, int* fd, int* interest, timeval* tv)

Meta