Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!caen!ox.com!tbomb.ice.com!time From: time@tbomb.ice.com (Tim Endres) Newsgroups: comp.sys.mac.programmer Subject: How Do You CTB CMListen()? Message-ID: Date: 28 Aug 90 00:57:52 GMT Reply-To: time@tbomb.ice.com Organization: ICE Engineering, Inc. Lines: 34 X-Mailer: uMail - Mac Release: 0.1.1 I am using the CTB for AppleTalk ADSP communications, and am having difficulty with the ADSP connection ritual. On the server side, I am doing something like: { CMNew() CMListen(ASYNC); while (NOT accepted) { CMStatus() if (statusListenPend == FALSE && statusIncomingCallPresent == FALSE) { printf("ERROR listener closed unexpectedly."); } else if (statusIncomingCallPresent == TRUE) { CMAccept(); accepted = TRUE; } } Communicate..... (Calls to CMRead(), CMWrite(), CMConfig(), etc...). } Excusing the hideous psuedo-code.... Does this look right? Do I need A CMOpen() in there? How do the status flags work here? Is my check valid? Right now, my first attempts at communication lock the server and the client. This appears to be virtually undocumented. tim. ------------------------------------------------------------- Tim Endres | time@tbomb.ice.com ICE Engineering | ...uunet!oxtrap!tbomb!time 8840 Main Street | Whitmore Lake MI. 48189 | ---