🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.mac
Article #5987

Appletalk

#5987
From: Robert Wald
Date: Mon, 09 Jun 1986 07:24
37 lines
1998 bytes
  I'm having a strange problem with Appletalk & Lightspeed C.
 
I am just doing some simple functions in Appletalk before diving into writing
a real program with it. I am
opening an ATP socket and giving it a name (NBP). These seem to go alright.
After doing this I immediately remove the name from NBP, which also
seems to succeed. But when I try to remove the socket with ATPCloseSocket,
I get an error -1099 (badATPSkt). This error also prevents me from opening
any more sockets if I rerun the program! (Error -91)  I think I am giving
it the correct numbers:
ATPOpenSocket(0L,&socketnum);    (Byte socketnum) (socketnum=0 initially)
and immediately
ATPCloseSocket(socketnum);
which returns -1099.
The problem occurs even when I don't use NBP.
I can create a socket again only after using the control panel to
turn Appletalk off and then on.  But the same problem reoccurs.
Setting socketnum to 0 should give me a dynamically assigned socket, but
it assigns socket 0, is this a legal socket?
Any suggestions?
 
 
-----By the way, reguarding the posting about the SFGetFIle problem,
the problem is that you must give SFGetFile a POINTER to the typelist, so
you should have SFGetFIle(apoint,NIL,NIL,2,&typelist,NIL,&reply);
 
-------------------   Nexus   --------------------
 
-Rob Wald
(PUCC User Services)
BITNET: 6090617@PUCC
UUCP: ...ALLEGRA!PSUVAX1!PUCC.BITNET!6090617
 
    "Behold, I teach you the Superman!
     He is this Lightning.
     He is this madness."
Technical Details
Message-ID: <727@pucc.BITNET>
Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!caip!princeton!puvax2!pucc.BITNET!6090617

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!caip!princeton!puvax2!pucc.BITNET!6090617
From: 6090617@pucc.BITNET (Robert Wald)
Newsgroups: net.micro.mac
Subject: Appletalk
Message-ID: <727@pucc.BITNET>
Date: Mon, 9-Jun-86 03:24:43 EDT
Article-I.D.: pucc.727
Posted: Mon Jun  9 03:24:43 1986
Date-Received: Tue, 10-Jun-86 21:06:54 EDT
Reply-To: 6090617@pucc.BITNET
Organization: Princeton University Computing Center
Lines: 37