lkml.org 
[lkml]   [1996]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Problem with sockets
Date

> getsockopt(i, SOL_SOCKET, SO_REUSEADDR, (caddr_t)&on, (int *) sizeof on);
> printf("SO_REUSEADDR value is %d\n",on);

That code is broken. You are taking a constant and passing it to the system
to write to. The kernel doesnt want to do that and then you forget to check
the error.

Please ask whoever wrote the code to fix it

Alan


\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.717 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site