🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #13672

Re: A couple of AmigaDOS questions...

#13672
From: Doug Walker
Date: Tue, 13 Feb 1990 03:13
24 lines
1557 bytes
In article <sZh927G00WB_01qmID@andrew.cmu.edu> tw0i+@andrew.cmu.edu (Todd Andrew Williamson) writes:
>1)  Is there a way to do non-blocking reads from an AmigaDOS 
>    FileHandle?
Use the DOS Packet interface.  Get a copy of PickPacket, by John Toebes and
myself, and some back issues of Transactor for the Amiga - last April-June, I
think - where we discuss the packet interface.


>2)  Is there a way to get a signal when I/O is available on
>    a FileHandle?

Sure, just post a packet read of some large number of bytes.  It will return
when input is available with fewer bytes than you requested, but your MsgPort
will signal you when it returns.  Keep in mind, though, that if it's a console
stream, CON: buffers its input until it sees a \n;  you'll need to put it in
RAW mode to get characters as they're typed.


  *****
=*|_o_o|\\=====Doug Walker, Software Distiller=======================
 *|. o.| ||
  | o  |//     "I try to make everyone's day a little more surreal."
  ======                 - Calvin
usenet: ...mcnc!rti!sas!walker   plink: dwalker  bix: djwalker 
Technical Details
Message-ID: <1544@sas.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!emory!mephisto!mcnc!rti!sas!walker
References: <sZh927G00WB_01qmID@andrew.cmu.edu> <20642@watdragon.waterloo.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!emory!mephisto!mcnc!rti!sas!walker
From: walker@sas.UUCP (Doug Walker)
Newsgroups: comp.sys.amiga.tech
Subject: Re: A couple of AmigaDOS questions...
Message-ID: <1544@sas.UUCP>
Date: 13 Feb 90 03:13:50 GMT
References: <sZh927G00WB_01qmID@andrew.cmu.edu> <20642@watdragon.waterloo.edu>
Reply-To: walker@sas.UUCP (Doug Walker)
Organization: SAS Institute Inc, Cary NC
Lines: 24