<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML dir=ltr><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.6000.16481" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=355194114-15062007><FONT face=Arial color=#0000ff size=2>You
might want to look at using the ACE_Proactor with tty I/O on
Windows.</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=355194114-15062007><FONT face=Arial color=#0000ff size=2>Or, do
overlapped I/O on your own and use the overlapped event handle with the reactor
framework.</FONT></SPAN></DIV>
<DIV><SPAN class=355194114-15062007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=355194114-15062007><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>Would you like ACE
to run great on your platform?<BR>See <A
href="http://www.riverace.com/sponsor.htm">http://www.riverace.com/sponsor.htm</A><BR></FONT></P>
<BLOCKQUOTE dir=ltr
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>
ace-users-bounces@cse.wustl.edu [mailto:ace-users-bounces@cse.wustl.edu] <B>On
Behalf Of </B>Kim J. Schmock<BR><B>Sent:</B> Friday, June 15, 2007 10:39
AM<BR><B>To:</B> ace-users@cs.wustl.edu<BR><B>Subject:</B> [ace-users] Trying
to adding an ACE_TTY_IO handler to the reactor.<BR><BR></FONT></DIV>
<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> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>2) Yes; the reactor should enter sleep
infinite or timed until an event happens. I ends up on
WaitForMultipleObejcts();</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </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> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>So, ACE_TTY_IO is not able to be used as
is with the reactor object without polling?</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </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> </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>> That solved the
issue.<BR><BR>Great!<BR><BR>> 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>> Shouldn't
it preempt the application until a character arrives at the<BR>>
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>> It seems like it is polling,
or maybe reacting on an event related to<BR>> the handle for the COM1
port.<BR><BR>3) I recommend you read the documentation on programming with
Windows<BR>serial ports. 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>
Doug<BR></FONT></P></DIV></BLOCKQUOTE></BODY></HTML>