<HTML dir=ltr><HEAD><TITLE>Re: [ace-users] FW: Trying to adding an ACE_TTY_IO handler to the reactor.</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2900.3132" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText39476 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>1) It enters into my Rs232Handler::Handle_signal() without any characters to available. (you can see the code in previous mail. I just exchanged the Handel_input() with Handle_signal() as suggested).</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>2) Yes; the reactor should enter sleep infinite or timed&nbsp;until an event happens. I ends up on WaitForMultipleObejcts();</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>3) Do you refer to "Windows documentation on programming Serial ports" or some other documentation?</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>So, ACE_TTY_IO is not able to be used as is&nbsp;with the reactor object without polling?</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>I have tried to look around for some solutions/examples without luck. Maybe someone have that knowledge? or seen a solution?</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>Best regards</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>/Kim</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Fra:</B> Douglas C. Schmidt [mailto:schmidt@dre.vanderbilt.edu]<BR><B>Sendt:</B> fr 15-06-2007 14:34<BR><B>Til:</B> Kim J. Schmock<BR><B>Cc:</B> ace-users@cs.wustl.edu<BR><B>Emne:</B> Re: [ace-users] FW: Trying to adding an ACE_TTY_IO handler to the reactor. <BR></FONT><BR></DIV>
<DIV><BR>
<P><FONT size=2>Hi Kim,<BR><BR>&gt; That solved the issue.<BR><BR>Great!<BR><BR>&gt; I was just wondering why handle_signal() are called rapidly.<BR><BR>1) Can you please provide more info on this, i.e., when the calls are<BR>occurring is there any data available?<BR><BR>&gt; Shouldn't it preempt the application until a character arrives at the<BR>&gt; COM1?<BR><BR>2) What do you mean by "it" (i.e., the Reactor) and "preempt" (i.e., the<BR>reactor should sleep)?<BR><BR>&gt; It seems like it is polling, or maybe reacting on an event related to<BR>&gt; the handle for the COM1 port.<BR><BR>3) I recommend you read the documentation on programming with Windows<BR>serial ports.&nbsp; I seem to recall the way of getting I/O from them is to<BR>create an event that's associated with the serial port handle and<BR>register *that* event with the reactor, rather than the handle itself.<BR><BR>Take care,<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp; Doug<BR></FONT></P></DIV></BODY></HTML>