mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Fix bug initilising listening port - buffer size variable was not set up.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@6886 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1b91e89dbf
commit
27cefa4f1b
3 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2000-07-07 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/GSTcpPort.m: set size for return buffer of getsockbyname()
|
||||
|
||||
2000-07-07 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSRunLoop.m: Minor optimisation in select(), also update
|
||||
|
|
|
@ -1138,6 +1138,11 @@ static Class tcpPortClass;
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Need size of buffer for getsockbyname() later.
|
||||
*/
|
||||
i = sizeof(sockaddr);
|
||||
|
||||
if (addrOk == NO)
|
||||
{
|
||||
NSLog(@"Bad address (%@) specified for listening port", addr);
|
||||
|
|
|
@ -205,7 +205,12 @@ printf("oneway %d\n", _F_ONEWAY);
|
|||
|
||||
{
|
||||
NSDate *d = [NSDate date];
|
||||
NSData *sen = [NSMutableData data];
|
||||
id rep;
|
||||
|
||||
[sen setLength: 100000];
|
||||
rep = [p echoObject: sen];
|
||||
NSLog(@"Send: 0x%x, Reply: 0x%x, Length: %d", sen, rep, [rep length]);
|
||||
[NSConnection setDebug: 0];
|
||||
[NSDistantObject setDebug: 0];
|
||||
[NSPort setDebug: 0];
|
||||
|
|
Loading…
Reference in a new issue