[ace-users] FW: Trying to adding an ACE_TTY_IO handler to the reactor.

Kim J. Schmock KJS at capres.com
Sun Jun 17 23:12:47 CDT 2007


Thx JR
I would be very happy if you would send it to me. I need to see some
solutions, to get an idea how I can implement my. My goal is to make an
implementation that works both on Win and Linux. Maybe I have to make a
wrapper to hide the differences in platforms, I'll see.
As a newcomer to ACE, it is very difficult to have an overview how to
use all the classes. The many examples and the many ways how to use them
can be a bit confusing, until you get the overview.
/Kim

-----Original Message-----
From: JR Andreassen [mailto:janrune at io.com] 
Sent: 16. juni 2007 00:17
Cc: Kim J. Schmock; ace-users at cs.wustl.edu
Subject: Re: [ace-users] Trying to adding an ACE_TTY_IO handler to the
reactor.

Hi...
 I have some Serial IO classes that I use to read Magnetic stripe 
readers and GPS devices.
I'll send it to you if you want.
I'm only reading input(handle_input()), but it works pretty good.
Like I said last time, You won't be able to compile and run directly 
since it's dependent upon some
other library code I have.
 But, it should be a good sample/reference.
Let me know.
     JR

>Hi Kim,
>
>  
>
>>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).
>>    
>>
>
>It's been a long time since I've deal with this stuff, but that sounds
>like the behavior I recall on Windows if you use an I/O handle rather
>than an event handle for serial I/O.
>
>  
>
>>2) Yes; the reactor should enter sleep infinite or timed until an
event happens. I ends up on WaitForMultipleObejcts();
>>    
>>
>
>Ok.
>
>  
>
>>3) Do you refer to "Windows documentation on programming Serial ports"
or some other documentation?
>>    
>>
>
>I would recommend you read the classic books on advanced Windows
systems
>programming by Jeff Richter, e.g.,
>
>http://www.amazon.com/Advanced-Windows-Jeffrey-Richter/dp/1572315482
>
>that explains how things work.
>
>  
>
>>So, ACE_TTY_IO is not able to be used as is with the reactor object
without polling?
>>    
>>
>
>You may need to tweak stuff a bit to get this working, but it should be
>doable.  
>
>  
>
>>I have tried to look around for some solutions/examples without luck.
Maybe someone have that knowledge? or seen a
>>solution?
>>    
>>
>
>Have you checked out
>
>ACE_ROOT/examples/Reactor/WFMO_Reactor
>
>to see if there are any examples there that help?
>
>take care,
>
>     Doug
>
>_______________________________________________
>ace-users mailing list
>ace-users at mail.cse.wustl.edu
>http://mail.cse.wustl.edu/mailman/listinfo/ace-users
>
>  
>




More information about the Ace-users mailing list