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:
Richard Frith-MacDonald 2009-12-01 07:47:29 +00:00
parent 0c3268b9d9
commit 405dbae6f0
3 changed files with 14 additions and 6 deletions

View file

@ -1,3 +1,8 @@
2009-12-01 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSMessagePortNameServer.m: Tolerate '*' host name.
* Source/NSConnection.m: Clarify documentation slightly.
2009-11-27 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSNotificationQueue.m: Rewrite queue handling to attempt to

View file

@ -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>

View file

@ -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];