toggle set sock opt to set

This commit is contained in:
Jeff Hill
1993-10-29 16:47:19 +00:00
parent a06671fafa
commit d2869303ba
2 changed files with 8 additions and 4 deletions

View File

@@ -41,6 +41,7 @@
/* 120992 GeG support VMS/UCX */
/* 091493 joh init send retry count when each recv and at */
/* at connect */
/* 102993 joh toggle set sock opt to set */
/* */
/*_begin */
/************************************************************************/
@@ -1463,6 +1464,7 @@ int repeater_installed()
int status;
int sock;
struct sockaddr_in bd;
int true = 1;
int installed = FALSE;
@@ -1477,8 +1479,8 @@ int repeater_installed()
status = setsockopt( sock,
SOL_SOCKET,
SO_REUSEADDR,
NULL,
0);
(char *)&true,
sizeof true);
if(status<0){
ca_printf( "CAC: set socket option reuseaddr failed\n");
}

View File

@@ -56,6 +56,7 @@
* in .04
* .06 120492 joh removed unnecessary includes
* .07 120992 joh now uses dll list routines
* .08 102993 joh toggle set sock opt to set
*
*/
@@ -180,6 +181,7 @@ LOCAL int ca_repeater()
int status;
int size;
int sock;
int true = 1;
struct sockaddr_in from;
struct sockaddr_in bd;
struct sockaddr_in local;
@@ -199,8 +201,8 @@ LOCAL int ca_repeater()
status = setsockopt( sock,
SOL_SOCKET,
SO_REUSEADDR,
NULL,
0);
(char *)&true,
sizeof true);
if(status<0){
ca_printf( "%s: set socket option failed\n",
__FILE__);