Path: 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: <20642@watdragon.waterloo.edu> Reply-To: walker@sas.UUCP (Doug Walker) Organization: SAS Institute Inc, Cary NC Lines: 24 In article 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