Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!austing From: austing@Apple.COM (Glenn L. Austin) Newsgroups: comp.sys.mac.programmer Subject: Re: When the phone rings, who answers? Message-ID: <43346@apple.Apple.COM> Date: 26 Jul 90 02:59:09 GMT References: <1435@camex.COM> Organization: Apple Computer Inc., Cupertino, CA Lines: 39 kent@circus.camex.com (Kent Borg) writes: >I have a question that I think should be handled by something in the >Communications Toolbox, but suspect it isn't: > When the phone rings, who answers? >With 7.0 there is a big push for communications. Interapplication >communications is great for applications on a given machine or the local >network, but what about communications with remote Macintoshes? >Say I want to write a program which phones up other copies of itself and >trades information, do I have to open the serial driver and just stay parked >forever waiting for a call? >At the risk of upsetting my stomach, I point out that Unix handles this >problem by having a login process which brings up your favorite shell which >can then run uucp, etc. >Is there some way for applications to get the Comm Toolbox to somehow >route incoming calls? I don't want to be a serial port hog. If I understand you correctly, you want something from the modem that tells your application to answer with the modem. As far as I know, the only way to do this is to set up your modem for auto-answer, then go away and poll the carrier detect line for the connection. Not exactly the thing to do (IMHO) on the Mac and with the serial ports, since you're still tying up the port with the modem and the polling. However, if you just want it to sit there and wait for a call, then the CTB and the Modem Tool should work fine. -- ----------------------------------------------------------------------------- | Glenn L. Austin | "Turn too soon, run out of room, | | Auto Racing Enthusiast and | Turn too late, much better fate" | | Communications Toolbox Hacker | - Jim Russell Racing School Instructors | | Apple Computer, Inc. | "Drive slower, race faster" - D. Waltrip | | Internet: austing@apple.com |-------------------------------------------| | AppleLink: AUSTIN.GLENN | All opinions stated above are mine -- | | Bellnet: (408) 974-0876 | who else would want them? | -----------------------------------------------------------------------------