mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +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
8f97c8ffc9
commit
9c2b204c13
4 changed files with 10 additions and 6 deletions
|
@ -2,7 +2,9 @@
|
|||
|
||||
* Source/NSMessagePort.m:
|
||||
* Source/NSSocketPort.m:
|
||||
* Source/NSConnection.m:
|
||||
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>
|
||||
|
||||
|
|
|
@ -800,8 +800,8 @@ static NSLock *cached_proxies_gate = nil;
|
|||
|
||||
- (NSString*) description
|
||||
{
|
||||
return [NSString stringWithFormat: @"%@ recv: 0x%x send 0x%x",
|
||||
[super description], (uintptr_t)[self receivePort], (uintptr_t)[self sendPort]];
|
||||
return [NSString stringWithFormat: @"%@ recv: %@ send %@",
|
||||
[super description], [self receivePort], [self sendPort]];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1339,8 +1339,9 @@ typedef struct {
|
|||
|
||||
names = [[NSMessagePortNameServer sharedInstance] namesForPort: self];
|
||||
desc = [NSString stringWithFormat:
|
||||
@"NSMessagePort %p %@ with file name %s",
|
||||
self, ([names count] == 0) ? (id)@"<un-named>" : (id)names, [name bytes]];
|
||||
@"<%s %p %@ with file name %s>",
|
||||
GSClassNameFromObject(self), self,
|
||||
([names count] == 0) ? (id)@"<un-named>" : (id)names, [name bytes]];
|
||||
return desc;
|
||||
}
|
||||
|
||||
|
|
|
@ -1807,8 +1807,9 @@ static Class tcpPortClass;
|
|||
|
||||
names = [[NSSocketPortNameServer sharedInstance] namesForPort: self];
|
||||
desc = [NSString stringWithFormat:
|
||||
@"NSSocketPort %p %@ on IP address: %@, port: %d",
|
||||
self, (([names count] == 0) ? (id)@"<un-named>" : (id)names), host,
|
||||
@"<%s %p %@ on IP %@,%d>",
|
||||
GSClassNameFromObject(self), self,
|
||||
(([names count] == 0) ? (id)@"(<un-named>)" : (id)names), host,
|
||||
((address == nil) ? (id)@"any" : (id)address), portNum];
|
||||
return desc;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue