Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!apple!han From: han@Apple.COM (Byron Han, scapegoat) Newsgroups: comp.sys.mac.programmer Subject: Re: RAM serial driver and event handling Message-ID: <10308@goofy.Apple.COM> Date: 19 Sep 90 23:04:43 GMT References: <1021.26f75aef@iccgcc.decnet.ab.com> <1990Sep19.193147.15445@eng.umd.edu> Organization: Apple Computer, Inc. Lines: 14 In article <1021.26f75aef@iccgcc.decnet.ab.com> milikich@iccgcc.decnet.ab.com (Mike Milikich, Allen-Bradley Company) writes: >I am writing an application which needs to communicate with an external device >(a network bridge, actually) through the modem or printer ports. I have two >questions : > >0) Can anyone direct me to some sample code which uses the RAM serial driver to >read and write bytes to/from either port? In fact, is the RAM serial driver the >best way to do something like this (what are the options / pros / cons)? As a further note, when opening the serial driver, it is best to check to see if the driver is already open before opening - this prevents one application from "stealing" the serial driver from another under MultiFinder. Someday, serial port arbitration will be a reality, Until then...