TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Jonathan de Boyne Pollard
from: James R. Cook
date: 1997-01-07 23:22:02
subject: DosRead blocking

-=> Quoting Jonathan de Boyne Pollard to James R. Cook <=-



 > 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?



 JdBP> You can use DosDevIOCtl to change the timeouts as long as you have

 JdBP> an open handle to the COM device.  In the case of your
"shim", you

 JdBP> would have to set up your mailer to spawn your program in such a way

 JdBP> that it inherits the open file handle.  All halfway decent OS/2

 JdBP> mailers, such as BinkleyTerm, allow you to spawn programs, and pass

 JdBP> the number of the open file handle to the COM device that will be

 JdBP> inherited as a parameter on the command line.



 I would assume then that Xenia is similar.  I can write to the port using

 DosWrite and it seems happy ...  :)



 JdBP> You can then use DosDevIOCtl on that file handle to make

 JdBP> adjustments to timeout and suchlike, and in turn spawn the BBS

 JdBP> program. 



 Okie.  I assume that after I fiddle with the settings, I should probably

 set them back the way I got them (when my proggie exits)?  Also, should

 I worry with setting up a thread to handle the I/O or just let OS/2 buffer

 it.  I've been going round and round with that and I can't see much

 benefit in buffering it myself.



 ={) James (}=



--- Blue Wave/DOS v2.30

* Origin: COMM Port OS/2 juge.com 204.89.247.1 (281) 980-9671 (1:106/2000)
SEEN-BY: 50/99 54/99 270/101 620/243 625/0 160 640/201 711/409 410 413 430
SEEN-BY: 711/808 809 934 955 712/311 407 505 506 517 623 624 704 841 713/317
SEEN-BY: 800/1
@PATH: 106/2000 396/1 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™.