mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
clarify doccumentation a little
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29085 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0c3268b9d9
commit
405dbae6f0
3 changed files with 14 additions and 6 deletions
|
@ -505,10 +505,10 @@ static NSLock *cached_proxies_gate = nil;
|
|||
* </p>
|
||||
* <p>
|
||||
* If <em>host</em> is <code>nil</code> or an empty string,
|
||||
* the host is taken to be the local machine.
|
||||
* the host is taken to be the local machine.<br />
|
||||
* If it is an asterisk ('*') then the nameserver checks all
|
||||
* hosts on the local subnet (unless the nameserver is one
|
||||
* that only manages local ports).
|
||||
* that only manages local ports).<br />
|
||||
* In the GNUstep implementation, the local host is searched before
|
||||
* any other hosts.
|
||||
* </p>
|
||||
|
|
|
@ -323,13 +323,16 @@ static void clean_up_names(void)
|
|||
|
||||
if ([host length] > 0)
|
||||
{
|
||||
[NSException raise: NSInvalidArgumentException
|
||||
format: @"Attempt to contact a named host using a "
|
||||
NSLog(@"Attempt to contact a named host using a "
|
||||
@"message port name server. This name server can only be used "
|
||||
@"to contact processes owned by the same user on the local host "
|
||||
@"(host name must be an empty string). To contact processes "
|
||||
@"(host name must be nil or an empty string). To contact processes "
|
||||
@"owned by other users or on other hosts you must use an instance "
|
||||
@"of the NSSocketPortNameServer class."];
|
||||
@"of the NSSocketPortNameServer class.");
|
||||
if (NO == [host isEqualToString: @"*"])
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
}
|
||||
|
||||
path = [[self class] _pathForName: name];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue