Re: getsockname()

2004-01-07 Thread Lev Walkin
Christian Klein wrote: Am Mittwoch, 07.01.04, um 23:02 Uhr (Europe/Berlin) schrieb Lev Walkin: len = sizeof(*foo); Oh, thanks a lot! I should have read the manual more careful! I thought then len parameter would be filled by getsockname(). It is. But its original value is being used too. -- Lev

Re: getsockname()

2004-01-07 Thread Christian Klein
Am Mittwoch, 07.01.04, um 23:02 Uhr (Europe/Berlin) schrieb Lev Walkin: len = sizeof(*foo); Oh, thanks a lot! I should have read the manual more careful! I thought then len parameter would be filled by getsockname(). Thank you! ___ [EMAIL PROTECTED] mai

Re: getsockname()

2004-01-07 Thread Lev Walkin
Christian Klein wrote: Am Mittwoch, 07.01.04, um 22:40 Uhr (Europe/Berlin) schrieb David Schwartz: Fix those two bugs and see if you still have a problem. DS Ok, here's the diff of the changes: $ diff public_html/haunted.c haunted.c 11c11 < int sock, len; --- > int sock, l

Re: getsockname()

2004-01-07 Thread Christian Klein
Am Mittwoch, 07.01.04, um 22:40 Uhr (Europe/Berlin) schrieb David Schwartz: Fix those two bugs and see if you still have a problem. DS Ok, here's the diff of the changes: $ diff public_html/haunted.c haunted.c 11c11 < int sock, len; --- > int sock, len=0; 36,37c36,40 < getsoc

RE: getsockname()

2004-01-07 Thread David Schwartz
> (this is of course not my program, just some code that does the same) > > --- snipp --- > #include > #include > #include > #include > #include > #include > #include > > int main() > { > int sock, len; Okay, you haven't set the value of 'len'. > struct sockaddr_in addr,