ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/slirp/socket.c
(Generate patch)

Comparing BasiliskII/src/slirp/socket.c (file contents):
Revision 1.2 by cebix, 2005-06-30T21:25:26Z vs.
Revision 1.3 by gbeauche, 2006-03-25T07:57:38Z

# Line 575 | Line 575 | solisten(port, laddr, lport, flags)
575          addr.sin_port = port;
576          
577          if (((s = socket(AF_INET,SOCK_STREAM,0)) < 0) ||
578 +            (setsockopt(s,SOL_SOCKET,SO_REUSEADDR,(char *)&opt,sizeof(int)) < 0) ||
579              (bind(s,(struct sockaddr *)&addr, sizeof(addr)) < 0) ||
580              (listen(s,1) < 0)) {
581                  int tmperrno = errno; /* Don't clobber the real reason we failed */
# Line 589 | Line 590 | solisten(port, laddr, lport, flags)
590   #endif
591                  return NULL;
592          }
592        setsockopt(s,SOL_SOCKET,SO_REUSEADDR,(char *)&opt,sizeof(int));
593          setsockopt(s,SOL_SOCKET,SO_OOBINLINE,(char *)&opt,sizeof(int));
594          
595          getsockname(s,(struct sockaddr *)&addr,&addrlen);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines