Article View: comp.sys.amiga.tech
Article #12978Re: I wanna have a DOSGate!
From: Eric Green
Date: Fri, 02 Jun 1989 05:27
Date: Fri, 02 Jun 1989 05:27
27 lines
1834 bytes
1834 bytes
in article <16317@gryphon.COM>, ddave@pnet02.cts.com (David Donley) says:
> peter@sugar.hackercorp.com (Peter da Silva) writes:
>>> In article <16031@gryphon.COM> ddave@pnet02.cts.com (David Donley) writes:
>>> >How can I fake normal standard programs into sending their stdio into
>>> >my BBS code?
>>What's wrong with using a PIPE: type of device?
> I can't use a pipe, the BBS must handle many events, it can't just wait for
> data to come from a file.
So use asynchronous I/O, and Wait() on both the pipe-handler and your
events (I assume menupicks and timers and such?). See the latest
AmyTransactor for John Toebes/et. al.'s excellent article on the
subject. Also, Matt Dillon has a library somewhere for doing async
I/O, to go with his libraries to do just about everything else under
the sun :-).
Someone else suggested multitasking it off as a seperate task, but
that won't work here. If the person doesn't type anything in the past,
say, 5 minutes, the BBS has to assume he's gone to lunch, i.e. we have
to be waiting on a timer as well as on file and modem i/o. Might as
well just do it in the BBS instead of spawning it off.
--
Eric Lee Green P.O. Box 92191, Lafayette, LA 70509
..!{ames,decwrl,mit-eddie,osu-cis}!killer!elg (318)989-9849
"I have seen or heard 'designer of the 68000' attached to so many names that
I can only guess that the 68000 was produced by Cecil B. DeMille." -- Bcase
Technical Details
Message-ID:
<8258@killer.DALLAS.TX.US>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!bellcore!texbell!killer!elgReferences:
<16317@gryphon.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!bellcore!texbell!killer!elg From: elg@killer.DALLAS.TX.US (Eric Green) Newsgroups: comp.sys.amiga.tech Subject: Re: I wanna have a DOSGate! Message-ID: <8258@killer.DALLAS.TX.US> Date: 2 Jun 89 05:27:41 GMT References: <16317@gryphon.COM> Organization: The Unix(R) Connection, Dallas, Texas Lines: 27