Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!abvax!iccgcc!milikich From: milikich@iccgcc.decnet.ab.com (Mike Milikich, Allen-Bradley Company) Newsgroups: comp.sys.mac.programmer Subject: RAM serial driver and event handling Message-ID: <1021.26f75aef@iccgcc.decnet.ab.com> Date: 19 Sep 90 16:47:58 GMT Lines: 23 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)? 1) Is it a safe or sanctioned operation to use nullEvent to read any received data from the serial port? What I need to do is allow event processing to continue while I am waiting for replies. Something that might simplify this is that there are no unsolicited responses, so I know when to look for received data : only after I've sent some out. But while I am waiting for a reply packet, I want to continue to respond to user input. -- -------------------------------------------------------------------------------- | milikich%iccgcc.decnet@consrt.rok.com |"...and the men who hold high places | | allen-bradley company | must be the ones to start..." | | 747 alpha drive |--------------------------------------| | highland heights, ohio 44143 | I don't speak for A-B, | | (216) 646-3494 FAX : (216) 646-4343 | and I know they don't speak for me. | --------------------------------------------------------------------------------