The standard spy library provides a unique interface to acquire events:
The library itself can get the events only from a circular buffer. However, if on the system runs a spy daemon that comunicates with the remote machine (via the farm spy daemon ) or reads from a YBOS file, the library can access also that type of events.
In order to use the library, three (plus one) steps are needed:
The syntax of the command is:
where:
The return value of the routine is SPY_ERROR_OK if everything went OK, any other value should be treated as an error.
The syntax of the command is:
where:
The return value of the routine is:
The syntax of the command is:
where:
The return value of the routine is:
The syntax of the command is:
where:
The return value of the routine is SPY_ERROR_OK if everything went OK, any other value should be treated as an error. However, since this is the disconnecting phase, most of the time you can ignore the result.
The applications using this library should include spy.h and be linked with libspy.a.
Back to the spy libraries | Top of the page. | Send comments to: Igor Sfiligoi |
Created | : | 14.12.1998 |
Last modified | : | 16.12.1998 |