From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ffe4fb1477fe67e6 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!volia.net!news2.volia.net!news.musoftware.de!news.weisnix.org!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Newbie Needs Ada Advice Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1178212418.538270.283700@c35g2000hsg.googlegroups.com> Date: Fri, 4 May 2007 21:48:37 +0200 Message-ID: <1fk217327jjhg$.r7isisod1xdf.dlg@40tude.net> NNTP-Posting-Date: 04 May 2007 21:48:04 CEST NNTP-Posting-Host: 9fdbe21e.newsspool2.arcor-online.net X-Trace: DXC=W4\K4=Ao?l785[]]\]T081A9EHlD;3Yc24Fo<]lROoR18kF[ On Fri, 4 May 2007 15:19:01 -0400, Bob Spooner wrote: > "Dmitry A. Kazakov" wrote in message > news:tylf07eikj2s.1khde2c9zxxku$.dlg@40tude.net... >> On Fri, 4 May 2007 08:57:08 -0400, Bob Spooner wrote: >> >>> wrote in message >>> news:a62dnVplZ7QMLKfbnZ2dnUVZ_uOmnZ2d@comcast.com... >>>> ... 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