search for: answertcp

Displaying 3 results from an estimated 3 matches for "answertcp".

2007 Jan 23
2
Re: [nut-commits] svn commit r731
...on %s:%s", saddr, sport); > + > return; > -#endif > } > +#endif > > /* decrement the login counter for this ups */ > static void declogins(const char *upsname) > @@ -493,19 +561,20 @@ > } > > /* answer incoming tcp connections */ > -static void answertcp(void) > -{ > - int acc; > +static void answertcp(stype *serv) > #ifndef HAVE_IPV6 > +{ > struct sockaddr_in csock; > #else > +{ > struct sockaddr_storage csock; > #endif > + int acc; > ctype *tmp, *last; > socklen_t clen; > > clen = sizeof...
2007 Jan 06
1
Re: [nut-commits] svn commit r710 - in trunk: . clients server
...t; +#else > struct addrinfo hints, *r, *rtmp; > char *service; > int res, one = 1; > @@ -206,6 +244,7 @@ > } > freeaddrinfo (rtmp); > return; > +#endif > } > > /* decrement the login counter for this ups */ > @@ -457,7 +496,11 @@ > static void answertcp(void) > { > int acc; > +#ifndef HAVE_IPV6 > + struct sockaddr_in csock; > +#else > struct sockaddr_storage csock; > +#endif > ctype *tmp, *last; > socklen_t clen; > > @@ -469,7 +512,11 @@ > > if (!access_check(&csock)) { > upslogx(LOG_...
2007 Jan 06
3
Re: [nut-commits] svn commit r708 - in trunk: . clients server
...if (listen(listenfd, 16) == -1) { > + if (r->ai_next == NULL) > + fatal_with_errno("listen"); > + close (listenfd); > + continue; > + } > + break; > + } > + freeaddrinfo (rtmp); > return; > } > > @@ -412,7 +457,7 @@ > static void answertcp(void) > { > int acc; > - struct sockaddr_in csock; > + struct sockaddr_storage csock; > ctype *tmp, *last; > socklen_t clen; > > @@ -424,7 +469,7 @@ > > if (!access_check(&csock)) { > upslogx(LOG_NOTICE, "Rejecting TCP connection from %s&quo...