TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: James R. Cook
from: Jonathan de Boyne Pollard
date: 1997-01-06 19:58:04
subject: DosRead blocking

JRC>
   > PC> Yes, DosRead will block, but you have to tell the com port which mode
   > PC> to use.
   >
   > Ach.  You can do that on ports that are already open?  i.e. a little shim
   > that sits between a BBS and it's mailer?
JRC>

   You can use DosDevIOCtl to change the timeouts as long as you have an
   open handle to the COM device.  In the case of your "shim", you would
   have to set up your mailer to spawn your program in such a way that it
   inherits the open file handle.  All halfway decent OS/2 mailers, such
   as BinkleyTerm, allow you to spawn programs, and pass the number of the
   open file handle to the COM device that will be inherited as a
   parameter on the command line.

   You can then use DosDevIOCtl on that file handle to make adjustments to
   timeout and suchlike, and in turn spawn the BBS program.

   > JdeBP <
___
 X MegaMail 2.10 #0:
--- Maximus/2 3.01
* Origin: DoNoR/2,Woking UK (44-1483-725167) (2:440/4)
SEEN-BY: 50/99 54/99 270/101 620/243 625/0 160 711/409 410 413 430 808 809
SEEN-BY: 711/934 955 712/311 407 505 506 517 623 624 704 841 713/317 800/1
@PATH: 440/4 141/209 270/101 712/624 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.