Ignore:
Timestamp:
Nov 9, 2005 3:51:49 PM (19 years ago)
Author:
bennylp
Message:

Test pj++ proactor (compile only)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/main/pjlib/src/pjlib++-test/main.cpp

    r36 r37  
    99#include <pj++/timer.hpp> 
    1010#include <pj++/tree.hpp> 
     11 
     12class My_Async_Op : public Pj_Async_Op 
     13{ 
     14}; 
     15 
     16class My_Event_Handler : public Pj_Event_Handler 
     17{ 
     18}; 
    1119 
    1220int main() 
     
    2533    delete plsem; 
    2634 
     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 
    2741    return 0; 
    2842} 
Note: See TracChangeset for help on using the changeset viewer.