Path: utzoo!utgpu!attcan!uunet!husc6!bloom-beacon!mit-eddie!ll-xn!ames!amdahl!acs From: acs@amdahl.uts.amdahl.com (Tony Sumrall) Newsgroups: comp.sys.amiga.tech Subject: Re: Opening the Serial Port for Exclusive Access if Already Open Message-ID: Date: 5 Aug 88 01:22:52 GMT References: <5046@gryphon.CTS.COM> Reply-To: acs@amdahl.uts.amdahl.com (Tony Sumrall) Organization: Amdahl Corporation, Sunnyvale CA Lines: 18 In article <5046@gryphon.CTS.COM> rickf@pnet02.cts.com (Rick Flower) says that he wants to write a program which will allow a terminal or BBS pgm to call an external routine to handle the xfer. Well, what I've done with VT100 R2.9 (not available yet) is to either close the serial port prior to invoking the external transfer routine or initially open the serial port in SHARED mode (according to the user's preference). I've provided alternatives in the event that the user has a modem which reacts unfavorable to hacing the serial port closed (e.g. hanging up the phone). If I've opened the serial port SHARED then I cancel all read requests prior to calling the external routine so that my program won't receive any data that was destined for the external program. >UUCP: {ihnp4!scgvaxd!cadovax, }!gryphon!pnet02!rickf >INET: rickf@pnet02.cts.com -- Tony Sumrall acs@amdahl.uts.amdahl.com <=> amdahl!acs [ Opinions expressed herein are the author's and should not be construed to reflect the views of Amdahl Corp. ]