🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: A couple of AmigaDOS questions...

#13657
From: Colin Plumb
Date: Mon, 12 Feb 1990 18:45
16 lines
1444 bytes
In article <10541@nigel.udel.EDU> new@udel.edu (Darren New) writes:
> But can you abort the I/O once your other stuff has come back?  I.e., if
> I want to time out on a read of CON:, I can get my process to come back when
> the timer.device message comes back, but since DOS is not a device I
> can't AbortIO on the packet, can I?    -- Darren

Sorry, no.  An AbortPkt() function *might* exist in 1.4, but it's dubious.
To do something like you describe, you have to use the underlying
console.device.  There's a way, described in AmigaMail and other
places, to get the console.device behind a CON: window and you can
do AbortIO() to it.  Currently, all DOS handlers that can block arbitrarily
long (CON:, SER:, PAR:, AUX:) are layered over Exec .devices, except for
The various flavours of PIPE:.  I don't know if there's a hack in PIPE:
to allow for timeouts.
-- 
	-Colin
Technical Details
Message-ID: <20807@watdragon.waterloo.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!clyde.concordia.ca!jarvis.csri.toronto.edu!utgpu!watserv1!watdragon!lion!ccplumb
References: <sZh927G00WB_01qmID@andrew.cmu.edu> <20642@watdragon.waterloo.edu> <10541@nigel.udel.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!clyde.concordia.ca!jarvis.csri.toronto.edu!utgpu!watserv1!watdragon!lion!ccplumb
From: ccplumb@lion.waterloo.edu (Colin Plumb)
Newsgroups: comp.sys.amiga.tech
Subject: Re: A couple of AmigaDOS questions...
Message-ID: <20807@watdragon.waterloo.edu>
Date: 12 Feb 90 18:45:47 GMT
References: <sZh927G00WB_01qmID@andrew.cmu.edu> <20642@watdragon.waterloo.edu> <10541@nigel.udel.EDU>
Sender: daemon@watdragon.waterloo.edu
Reply-To: ccplumb@lion.waterloo.edu (Colin Plumb)
Organization: U. of Waterloo, Ontario
Lines: 16