mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +00:00
further tweak description details
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28579 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
486c0d9600
commit
31045e40c9
4 changed files with 10 additions and 6 deletions
|
@ -2,7 +2,9 @@
|
||||||
|
|
||||||
* Source/NSMessagePort.m:
|
* Source/NSMessagePort.m:
|
||||||
* Source/NSSocketPort.m:
|
* Source/NSSocketPort.m:
|
||||||
|
* Source/NSConnection.m:
|
||||||
Improve -description to include the registered names (if any) of ports.
|
Improve -description to include the registered names (if any) of ports.
|
||||||
|
Include full port description in connection description.
|
||||||
|
|
||||||
2009-08-30 David Chisnall <csdavec@swan.ac.uk>
|
2009-08-30 David Chisnall <csdavec@swan.ac.uk>
|
||||||
|
|
||||||
|
|
|
@ -800,8 +800,8 @@ static NSLock *cached_proxies_gate = nil;
|
||||||
|
|
||||||
- (NSString*) description
|
- (NSString*) description
|
||||||
{
|
{
|
||||||
return [NSString stringWithFormat: @"%@ recv: 0x%x send 0x%x",
|
return [NSString stringWithFormat: @"%@ recv: %@ send %@",
|
||||||
[super description], (uintptr_t)[self receivePort], (uintptr_t)[self sendPort]];
|
[super description], [self receivePort], [self sendPort]];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1339,8 +1339,9 @@ typedef struct {
|
||||||
|
|
||||||
names = [[NSMessagePortNameServer sharedInstance] namesForPort: self];
|
names = [[NSMessagePortNameServer sharedInstance] namesForPort: self];
|
||||||
desc = [NSString stringWithFormat:
|
desc = [NSString stringWithFormat:
|
||||||
@"NSMessagePort %p %@ with file name %s",
|
@"<%s %p %@ with file name %s>",
|
||||||
self, ([names count] == 0) ? (id)@"<un-named>" : (id)names, [name bytes]];
|
GSClassNameFromObject(self), self,
|
||||||
|
([names count] == 0) ? (id)@"<un-named>" : (id)names, [name bytes]];
|
||||||
return desc;
|
return desc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1807,8 +1807,9 @@ static Class tcpPortClass;
|
||||||
|
|
||||||
names = [[NSSocketPortNameServer sharedInstance] namesForPort: self];
|
names = [[NSSocketPortNameServer sharedInstance] namesForPort: self];
|
||||||
desc = [NSString stringWithFormat:
|
desc = [NSString stringWithFormat:
|
||||||
@"NSSocketPort %p %@ on IP address: %@, port: %d",
|
@"<%s %p %@ on IP %@,%d>",
|
||||||
self, (([names count] == 0) ? (id)@"<un-named>" : (id)names), host,
|
GSClassNameFromObject(self), self,
|
||||||
|
(([names count] == 0) ? (id)@"(<un-named>)" : (id)names), host,
|
||||||
((address == nil) ? (id)@"any" : (id)address), portNum];
|
((address == nil) ? (id)@"any" : (id)address), portNum];
|
||||||
return desc;
|
return desc;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue