<br>After reading more about ACE_Reactor, I have seen that after the schedule_xxx ( ) functions are called the reactor does not notice the mask changes until a new event comes. So I have put a notify( ) after each schedule call so reactor will re-examine the mask inmediatly, but the problem is the same: handle_output( ) is not called.<br>I've also tryed to register()/unregister() my event handler at the right points with the right mask, with the same result.<br>Also, I have checked the TP_Reactor_Test example, which does the same things for schedule functions (although with a thread pool) and it seems to work.<br><br>What else should I try for my simple test program?<br> <br>Thank you<br><br><b><i>Steve Huston <shuston@riverace.com></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Thanks very much for the PROBLEM-REPORT-FORM.<br><br>> ACE VERSION: 5.5<br>>
HOST MACHINE and OPERATING SYSTEM:<br>> Linux 2.6.9 Kernel.CentOS4.2 (32bit)<br>> (snip)<br>> DESCRIPTION:<br>> I'm building a simple echo test program.<br>> I have an ACE_Select_Reactor listening in a port waiting data to<br>> be sent by telnet, for example. The reactor is registered for READ<br>> events. When telnet client connects, I write eight bytes in<br>terminal.<br>> ACE_Reactors calls handle_input() , who tries to read the 8 bytes,<br>> and then (still inside handle_input() ) it does a schedule_cancel( )<br>> on read events, and a schedule_wakeup for WRITE events.<br><br>Ok.<br><br>> I think ACE_Reactor should call handle_ouput( ) , but it is never<br>> called, so I can send the answer to the client. Only handle_input(<br>)<br>> gets called.<br><br>Right, this is expected when using schedule_wakeup() and<br>cancel_wakeup(). Please see C++NPv2 section 3.5 for why this is and<br>what you need to do to have
your events handled as you want.<br><br>For more info on C++NPv2, please see<br>http://www.riverace.com/acebooks/index.htm#cnpv2<br><br>Best regards,<br>-Steve<br><br>--<br>Steve Huston, Riverace Corporation<br>Want to take ACE training on YOUR schedule?<br>See http://www.riverace.com/training.htm<br><br><br></blockquote><br><p> 
<hr size=1>Be a better pen pal.
Text or chat with friends inside Yahoo! Mail. <a href="http://us.rd.yahoo.com/evt=51732/*http://overview.mail.yahoo.com/">See how.</a>