jl777 8 years ago
parent
commit
7fc6f4dfd1
  1. 2
      iguana/iguana_peers.c

2
iguana/iguana_peers.c

@ -393,7 +393,7 @@ int32_t iguana_socket(int32_t bindflag,char *hostname,uint16_t port)
//printf("keepalive.%d\n",opt); //printf("keepalive.%d\n",opt);
} }
setsockopt(sock,SOL_SOCKET,SO_REUSEADDR,(void *)&opt,sizeof(opt)); setsockopt(sock,SOL_SOCKET,SO_REUSEADDR,(void *)&opt,sizeof(opt));
#ifndef WIN2 //__APPLE__ #ifndef __APPLE__
setsockopt(sock,SOL_SOCKET,SO_NOSIGPIPE,&opt,sizeof(opt)); setsockopt(sock,SOL_SOCKET,SO_NOSIGPIPE,&opt,sizeof(opt));
#endif #endif
#endif #endif

Loading…
Cancel
Save