diff options
Diffstat (limited to 'pjlib/src/pjlib++-test/main.cpp')
-rw-r--r-- | pjlib/src/pjlib++-test/main.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pjlib/src/pjlib++-test/main.cpp b/pjlib/src/pjlib++-test/main.cpp index 4a6d0aaa..99b7f8d5 100644 --- a/pjlib/src/pjlib++-test/main.cpp +++ b/pjlib/src/pjlib++-test/main.cpp @@ -9,6 +9,14 @@ #include <pj++/timer.hpp>
#include <pj++/tree.hpp>
+class My_Async_Op : public Pj_Async_Op
+{
+};
+
+class My_Event_Handler : public Pj_Event_Handler
+{
+};
+
int main()
{
Pjlib lib;
@@ -24,6 +32,12 @@ int main() plsem = new(pool) Pj_Semaphore_Lock(pool);
delete plsem;
+ Pj_Proactor proactor(pool, 100, 100);
+
+ My_Event_Handler *event_handler = new(the_pool) My_Event_Handler;
+ proactor.register_socket_handler(pool, event_handler);
+ proactor.unregister_handler(event_handler);
+
return 0;
}
|