Re: Newbie Needs Ada Advice
- From: "Dmitry A. Kazakov" <mailbox@xxxxxxxxxxxxxxxxx>
- Date: Fri, 4 May 2007 21:48:37 +0200
On Fri, 4 May 2007 15:19:01 -0400, Bob Spooner wrote:
"Dmitry A. Kazakov" <mailbox@xxxxxxxxxxxxxxxxx> wrote in message
news:tylf07eikj2s.1khde2c9zxxku$.dlg@xxxxxxxxxxxxx
On Fri, 4 May 2007 08:57:08 -0400, Bob Spooner wrote:?
<tmoran@xxxxxxx> wrote in message
news:a62dnVplZ7QMLKfbnZ2dnUVZ_uOmnZ2d@xxxxxxxxxxxxxx
... I control my home X10 system with an Ada program using
the serial port with regular Windows calls.
Do you have an Ada binding for the Windows serial port driver that
implements overlapped I/O?
Win32.Winbase.ReadFile?
Translation please?
Windows API CreateFile / ReadFile / WriteFile do overlapped I/O for all
devices that support it. COM port does support it (though with Ada tasking
it is simpler to do input and output from two separate tasks, if
full-duplex I/O is all what you need. I don't know, maybe, you want to
handle 100+ ports, then possibly overlapped I/O would make sense.) Anyway,
you don't need any special bindings for doing overlapped I/O beyond Windows
API.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
.
- Follow-Ups:
- Re: Newbie Needs Ada Advice
- From: ezkcdude
- Re: Newbie Needs Ada Advice
- References:
- Newbie Needs Ada Advice
- From: ezkcdude
- Re: Newbie Needs Ada Advice
- From: tmoran
- Re: Newbie Needs Ada Advice
- From: Bob Spooner
- Re: Newbie Needs Ada Advice
- From: Dmitry A. Kazakov
- Re: Newbie Needs Ada Advice
- From: Bob Spooner
- Newbie Needs Ada Advice
- Prev by Date: Re: embed accept statement in procedures not possible?
- Next by Date: Re: An Ada Advice Inquiry
- Previous by thread: Re: Newbie Needs Ada Advice
- Next by thread: Re: Newbie Needs Ada Advice
- Index(es):
Relevant Pages
|