/[jscoverage]/trunk/http-server.c
ViewVC logotype

Diff of /trunk/http-server.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 427 by siliconforks, Wed Feb 18 16:08:33 2009 UTC revision 476 by siliconforks, Sun Oct 4 17:05:32 2009 UTC
# Line 149  Line 149 
149    }    }
150    
151    /* http://hea-www.harvard.edu/~fine/Tech/addrinuse.html */    /* http://hea-www.harvard.edu/~fine/Tech/addrinuse.html */
152      /* note that SO_REUSEADDR has different semantics on Windows */
153    #ifndef __MINGW32__
154    int optval = 1;    int optval = 1;
155    setsockopt(server->s, SOL_SOCKET, SO_REUSEADDR, (const char *) &optval, sizeof(optval));    setsockopt(server->s, SOL_SOCKET, SO_REUSEADDR, (const char *) &optval, sizeof(optval));
156    #endif
157    
158    struct sockaddr_in a;    struct sockaddr_in a;
159    a.sin_family = AF_INET;    a.sin_family = AF_INET;

Legend:
Removed from v.427  
changed lines
  Added in v.476

  ViewVC Help
Powered by ViewVC 1.1.24