🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: mod.protocols.appletalk
Article #75

(none)

#75
From: 6090617
Date: Mon, 09 Jun 1986 07:24
33 lines
1896 bytes
Newsgroups:  mod.protocols.appletalk  net.micro.mac
Subject: Appletalk
Date: Monday, 9-Jun-86 03:24:43 EDT
Userid: 6090617

  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);

-------
Technical Details
Message-ID: <8606091443.AA09409@ucbvax.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!utzoo!decvax!decwrl!ucbvax!PUCC!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!decvax!decwrl!ucbvax!PUCC!6090617
From: 6090617@PUCC.UUCP
Newsgroups: mod.protocols.appletalk
Subject: (none)
Message-ID: <8606091443.AA09409@ucbvax.Berkeley.EDU>
Date: Mon, 9-Jun-86 03:24:45 EDT
Article-I.D.: ucbvax.8606091443.AA09409
Posted: Mon Jun  9 03:24:45 1986
Date-Received: Mon, 9-Jun-86 17:23:48 EDT
Sender: daemon@ucbvax.BERKELEY.EDU
Organization: The ARPA Internet
Lines: 33
Approved: info-applebus@c.cs.cmu.edu