mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +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
|
@ -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>
|
2009-11-27 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSNotificationQueue.m: Rewrite queue handling to attempt to
|
* Source/NSNotificationQueue.m: Rewrite queue handling to attempt to
|
||||||
|
|
|
@ -505,10 +505,10 @@ static NSLock *cached_proxies_gate = nil;
|
||||||
* </p>
|
* </p>
|
||||||
* <p>
|
* <p>
|
||||||
* If <em>host</em> is <code>nil</code> or an empty string,
|
* 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
|
* If it is an asterisk ('*') then the nameserver checks all
|
||||||
* hosts on the local subnet (unless the nameserver is one
|
* 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
|
* In the GNUstep implementation, the local host is searched before
|
||||||
* any other hosts.
|
* any other hosts.
|
||||||
* </p>
|
* </p>
|
||||||
|
|
|
@ -323,13 +323,16 @@ static void clean_up_names(void)
|
||||||
|
|
||||||
if ([host length] > 0)
|
if ([host length] > 0)
|
||||||
{
|
{
|
||||||
[NSException raise: NSInvalidArgumentException
|
NSLog(@"Attempt to contact a named host using a "
|
||||||
format: @"Attempt to contact a named host using a "
|
|
||||||
@"message port name server. This name server can only be used "
|
@"message port name server. This name server can only be used "
|
||||||
@"to contact processes owned by the same user on the local host "
|
@"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 "
|
@"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];
|
path = [[self class] _pathForName: name];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue