Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual ndb_mgm_listen_event()

Description.  This function is used to listen to log events, which are read from the return file descriptor. Events use a text-based format, the same as in the cluster log.


int ndb_mgm_listen_event
      NdbMgmHandle handle,
      const int    filter[]

Parameters.  This function takes two arguments:

  • An NdbMgmHandle handle.

  • A filter which consists of a series of {level, ndb_mgm_event_category} pairs (in a single array) that are pushed to a file descriptor. Use 0 for the level to terminate the list.

Return value.  The file descriptor from which events are to be read.