mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 17:12:03 +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
fb3588357e
commit
c2505ba3c2
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>
|
2000-07-07 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSRunLoop.m: Minor optimisation in select(), also update
|
* 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)
|
if (addrOk == NO)
|
||||||
{
|
{
|
||||||
NSLog(@"Bad address (%@) specified for listening port", addr);
|
NSLog(@"Bad address (%@) specified for listening port", addr);
|
||||||
|
|
|
@ -205,7 +205,12 @@ printf("oneway %d\n", _F_ONEWAY);
|
||||||
|
|
||||||
{
|
{
|
||||||
NSDate *d = [NSDate date];
|
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];
|
[NSConnection setDebug: 0];
|
||||||
[NSDistantObject setDebug: 0];
|
[NSDistantObject setDebug: 0];
|
||||||
[NSPort setDebug: 0];
|
[NSPort setDebug: 0];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue