TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: david nugent
from: Paul Edwards
date: 1993-10-28 09:18:52
subject: os/2 com port control

PE> So what's the proper way to send characters to the modem?

 dn> Just use write() (or DosWrite(), if you like).  It is, 
 dn> after all, a file handle.

And non-blocking read?  Which obviously I want to do right after non-blocking write.

 dn> You also need to use DosDevIoctl() to set up the port once 
 dn> you have a handle. The default state (unless you're handed 
 dn> a 'hot' file handle from your parent process) is rarely 
 dn> correct.

Will this switch on non-blocking mode?  Also, which functions did you have
in mind when you said to set the state here?  Thanks + bye.

Paul

---
* Origin: Ten Minute Limit (3:711/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™.