Changeset 37 for pjproject/main/pjlib/src/pjlib++-test/main.cpp
- Timestamp:
- Nov 9, 2005 3:51:49 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/main/pjlib/src/pjlib++-test/main.cpp
r36 r37 9 9 #include <pj++/timer.hpp> 10 10 #include <pj++/tree.hpp> 11 12 class My_Async_Op : public Pj_Async_Op 13 { 14 }; 15 16 class My_Event_Handler : public Pj_Event_Handler 17 { 18 }; 11 19 12 20 int main() … … 25 33 delete plsem; 26 34 35 Pj_Proactor proactor(pool, 100, 100); 36 37 My_Event_Handler *event_handler = new(the_pool) My_Event_Handler; 38 proactor.register_socket_handler(pool, event_handler); 39 proactor.unregister_handler(event_handler); 40 27 41 return 0; 28 42 }
Note: See TracChangeset
for help on using the changeset viewer.