<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.6000.16544" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=017353822-27112007><FONT face=Arial color=#0000ff size=2>Thanks 
for your reply. I'm not sure what else could be wrong offhand. If you can run 
your code through gdb you can track down what's happening (and learn a LOT about 
how the reactor internals work ;-). If you need this figured out quicker and 
would like some consulting help on it, please let me know.</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=017353822-27112007><FONT face=Arial color=#0000ff 
size=2>-Steve</FONT></SPAN></DIV><!-- Converted from text/plain format -->
<P><FONT size=2>--<BR>Steve Huston, Riverace Corporation<BR>Want to take ACE 
training on YOUR schedule?<BR>See <A 
href="http://www.riverace.com/training.htm">http://www.riverace.com/training.htm</A><BR></FONT></P>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
  face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> p_j_r_m 
  [mailto:p_j_r_m@yahoo.com] <BR><B>Sent:</B> Monday, November 26, 2007 4:24 
  PM<BR><B>To:</B> Steve Huston; ace-users@cse.wustl.edu<BR><B>Subject:</B> RE: 
  [ace-users] ACE_Select_Reactor not calling handle_output( 
  )<BR><BR></FONT></DIV><BR>After reading more about ACE_Reactor, I have 
  seen&nbsp; that&nbsp; after the schedule_xxx ( ) functions are called the 
  reactor does not&nbsp; 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&nbsp; 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>&nbsp;<BR>Thank you<BR><BR><B><I>Steve Huston 
  &lt;shuston@riverace.com&gt;</I></B> wrote:
  <BLOCKQUOTE class=replbq 
  style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">Thanks 
    very much for the PROBLEM-REPORT-FORM.<BR><BR>&gt; ACE VERSION: 5.5<BR>&gt; 
    HOST MACHINE and OPERATING SYSTEM:<BR>&gt; Linux 2.6.9 Kernel.CentOS4.2 
    (32bit)<BR>&gt; (snip)<BR>&gt; DESCRIPTION:<BR>&gt; I'm building a simple 
    echo test program.<BR>&gt; I have an ACE_Select_Reactor listening in a port 
    waiting data to<BR>&gt; be sent by telnet, for example. The reactor is 
    registered for READ<BR>&gt; events. When telnet client connects, I write 
    eight bytes in<BR>terminal.<BR>&gt; ACE_Reactors calls handle_input() , who 
    tries to read the 8 bytes,<BR>&gt; and then (still inside handle_input() ) 
    it does a schedule_cancel( )<BR>&gt; on read events, and a schedule_wakeup 
    for WRITE events.<BR><BR>Ok.<BR><BR>&gt; I think ACE_Reactor should call 
    handle_ouput( ) , but it is never<BR>&gt; called, so I can send the answer 
    to the client. Only handle_input(<BR>)<BR>&gt; 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></BLOCKQUOTE></BODY></HTML>