Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!ll-xn!singer From: singer@XN.LL.MIT.EDU (Matthew R. Singer) Newsgroups: comp.sys.atari.st Subject: Re: RS-232 & MWC: Help.... Summary: BBS RS232 routines Message-ID: <1010@xn.LL.MIT.EDU> Date: 26 May 88 12:12:49 GMT References: <56200002@bucc2> Organization: MIT Lincoln Laboratory, Lexington, MA Lines: 34 In article <56200002@bucc2>, helix@bucc2.UUCP writes: > > > > > A couple of weeks ago, I had started to program a Bulliten > Board System for my ST. I have, however, run into a few problems > with the I/O routines for my RS-232 port. > First, I tried to open files to "aux:" and use feof() to see > if any characters were in the buffer, but that did not seem to work > properly. Then, I just changed the routines and used some GDOS functions > like Cauxin, Cauxout, Cauxis, and Cauxos. These seem to work fine, but > they do not use buffers. I would like to write this BBS so that it doesn't > use too many system dependent functions. Is there any way I can access the > RS-232 port with the standard I/O functions or do I have to stick with > GDOS?? Also, I am using the right approach?? > > > Any help would be deeply appreciated.... Your best bet is to use Bconin, Bconout and Bconstat. Route all of your RS232 out to a small set of routines which can be written for any machine you want to run it on. This is what is done for FoReM ST and FoReM PC. The ST version uses the TOS RS232 driver (although fiddling with the buffers) and FoReM PC uses the Greenleaf Communications library. Other than that, the codes is 99.99% the same. Matt Singer Commnet Systems