Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: 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 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."