Article View: comp.protocols.appletalk
Article #5292Appletalk sockets in Lightspeed C
From: Matthew McClure
Date: Wed, 28 Dec 1988 17:31
Date: Wed, 28 Dec 1988 17:31
33 lines
1521 bytes
1521 bytes
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
Technical Details
Message-ID:
<10155@well.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!bbn!apple!well!mmcShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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