Path: utzoo!attcan!uunet!husc6!bbn!apple!well!mmc From: mmc@well.UUCP (Matthew McClure) Newsgroups: comp.protocols.appletalk Subject: Appletalk sockets in Lightspeed C Summary: ATPOpenSocket problems? Keywords: sockets, ATPOpenSocket Message-ID: <10155@well.UUCP> Date: 28 Dec 88 17:31:11 GMT Reply-To: mmc@well.UUCP (Matthew McClure) Organization: International Technology Development Corp. (ITDC) Lines: 33 apTlkErr is always zero, and mySocket also ends up as zero. Why doesn't the ATPOpenSocket routine dynamically assign a socket number to mySocket or return some kind of error? This same thing happens if I use the DDP protocol instead of ATP. Thanks in advance for any help... /************************************************************************* * * InitNetStuff() * * initialize the AppleTalk network stuff * *************************************************************************/ Boolean InitNetStuff() { OSErr apTlkErr; AddrBlock addrRcvd; if(apTlkErr = ATPLoad()) return(FALSE); mySocket = 0; addrRcvd.aNet = 0; addrRcvd.aNode = 0; addrRcvd.aSocket = 0; if(apTlkErr = ATPOpenSocket(addrRcvd, &mySocket)) return(FALSE); return(TRUE); } /* InitNetStuff Matthew McClure {pacbell,lll-crg,apple,hplabs}!well!mmc International Technology Development Corporation 1990 Lombard Street, #250, San Francisco, CA 94123 415-929-0924