Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!apple!apple.com!cep From: cep@apple.com (Christopher Pettus) Newsgroups: comp.sys.mac.programmer Subject: Re: Looking for AppleTalk name-checking code. Message-ID: <1647@internal.Apple.COM> Date: 3 May 89 17:29:53 GMT References: <1848@ccnysci.UUCP> Sender: usenet@Apple.COM Organization: Apple Computer, Inc. Lines: 20 In article <1848@ccnysci.UUCP> alexis@ccnysci.UUCP (Alexis Rosen) writes: > 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. Remember that when you register a NBP name on the net using NBPRegister (IM II-299), it checks the network to make sure that the particular name:type@zone NBP tuple isn't registered somwhere else in some other note, and lets you know if it is. Thus, if you managed to register the name successfully, you can be (reasonably) confident that your name is unique. This is assuming that you are following the AppleTalk convention of using the user name entered in the Chooser as the "name", and an identifier unique to your application as the "type". -- Christopher Pettus | "Brahma said: Well, after hearing Network Systems Development | ten thousand explanations, a fool Apple Computer, Inc. | is no wiser. But an intelligent cep@apple.com {nsc, sun}!apple!cep | man needs only two thousand five AppleLink: PETTUS.C | hundred." -- The Mahabharata