Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ukma!husc6!cmcl2!ccnysci!alexis From: alexis@ccnysci.UUCP (Alexis Rosen) Newsgroups: comp.sys.mac.programmer Subject: Looking for AppleTalk name-checking code. Message-ID: <1848@ccnysci.UUCP> Date: 3 May 89 08:38:31 GMT Reply-To: alexis@ccnysci.UUCP (Alexis Rosen) Organization: City College of New York Lines: 26 I've written some code which runs different pieces of itself on different nodes on an AppleTalk net. The problem is, novice (read "careless and/or stupid") users keep switching systems, and I wind up with machines with bad node names. Now I'm not worried about function A being performed on node B. If they're not smart enough to figure that out, they won't mind it happening anyway. The problem is running function A on node A, and node B, and node C. I think a sufficient solution is to check, on bootup, if "my" node name is already owned by another machine on the net. I don't have to worry about zones. I figure it's simple enough to do- a call or to to the NBP layer should do the trick. I've never done this, though, so what I'd like is a small fragment of code in either Pascal or C (or anything else, I guess) which does it. Normally I'd just read & experiment, but I don't really want to muck around on the AppleTalk net- it's always in use. Thanks in advance, --- Alexis Rosen alexis@ccnysci.{uucp,bitnet} alexis@rascal.ics.utexas.edu (last resort)