* Compile with:
* c++ -I/usr/local/include -o time-test time-test.cpp -L/usr/local/lib -levent
*
- * Wed 2006-12-27 - Modified by Leandro Lucarella <llucarella@integratech.com.ar>
+ * Wed 2006-12-27 - Modified by Leandro Lucarella <llucax+eventxx@gmail.com>
*
* Adapted to test the C++ inteface.
*
#include <csignal>
#include <cerrno>
-#include <event>
+#include <eventxx>
typedef void (cb_t)(int, short);
int pair[2];
int test_okay = 1;
int called = 0;
-event::dispatcher d;
-event::event< cb_t >* ev;
+eventxx::dispatcher d;
+eventxx::event< cb_t >* ev;
void
write_cb(int fd, short event)
return (1);
/* Initalize one event */
- ev = new event::event< cb_t >(pair[1], EV_WRITE, write_cb);
+ ev = new eventxx::event< cb_t >(pair[1], eventxx::WRITE, write_cb);
d.add(*ev);