/*
- * $Id: dns_internal.cc,v 1.48 2002/10/13 20:35:00 robertc Exp $
+ * $Id: dns_internal.cc,v 1.49 2002/10/21 05:45:30 adrian Exp $
*
* DEBUG: section 78 DNS lookups; interacts with lib/rfc1035.c
* AUTHOR: Duane Wessels
#include "squid.h"
#include "Store.h"
+#include "comm.h"
#if defined(_SQUID_MSWIN_) || defined(_SQUID_CYGWIN_)
#include <windows.h>
while (max--) {
from_len = sizeof(from);
memset(&from, '\0', from_len);
- statCounter.syscalls.sock.recvfroms++;
- len = recvfrom(fd, rbuf, 512, 0, (struct sockaddr *) &from, &from_len);
+ len = comm_recvfrom(fd, rbuf, 512, 0, (struct sockaddr *) &from, &from_len);
if (len == 0)
break;
if (len < 0) {
/*
- * $Id: htcp.cc,v 1.44 2002/10/15 08:03:29 robertc Exp $
+ * $Id: htcp.cc,v 1.45 2002/10/21 05:45:30 adrian Exp $
*
* DEBUG: section 31 Hypertext Caching Protocol
* AUTHOR: Duane Wesssels
static struct sockaddr_in from;
socklen_t flen = sizeof(struct sockaddr_in);
memset(&from, '\0', flen);
- statCounter.syscalls.sock.recvfroms++;
- len = recvfrom(fd, buf, 8192, 0, (struct sockaddr *) &from, &flen);
+ len = comm_recvfrom(fd, buf, 8192, 0, (struct sockaddr *) &from, &flen);
debug(31, 3) ("htcpRecv: FD %d, %d bytes from %s:%d\n",
fd, len, inet_ntoa(from.sin_addr), ntohs(from.sin_port));
htcpHandle(buf, len, &from);
/*
- * $Id: icp_v2.cc,v 1.69 2002/10/14 11:50:08 adrian Exp $
+ * $Id: icp_v2.cc,v 1.70 2002/10/21 05:45:30 adrian Exp $
*
* DEBUG: section 12 Internet Cache Protocol
* AUTHOR: Duane Wessels
#include "squid.h"
#include "Store.h"
+#include "comm.h"
#include "ICP.h"
static void icpLogIcp(struct in_addr, log_type, int, const char *, int);
while (max--) {
from_len = sizeof(from);
memset(&from, '\0', from_len);
- statCounter.syscalls.sock.recvfroms++;
- len = recvfrom(sock,
+ len = comm_recvfrom(sock,
buf,
SQUID_UDP_SO_RCVBUF - 1,
0,
/*
- * $Id: snmp_core.cc,v 1.55 2002/10/13 20:35:03 robertc Exp $
+ * $Id: snmp_core.cc,v 1.56 2002/10/21 05:45:30 adrian Exp $
*
* DEBUG: section 49 SNMP support
* AUTHOR: Glenn Chisholm
*
*/
#include "squid.h"
+#include "comm.h"
#include "cache_snmp.h"
#define SNMP_REQUEST_SIZE 4096
memset(&from, '\0', from_len);
memset(buf, '\0', SNMP_REQUEST_SIZE);
- statCounter.syscalls.sock.recvfroms++;
-
- len = recvfrom(sock,
+ len = comm_recvfrom(sock,
buf,
SNMP_REQUEST_SIZE,
0,
/*
- * $Id: wccp.cc,v 1.25 2002/09/01 15:16:49 hno Exp $
+ * $Id: wccp.cc,v 1.26 2002/10/21 05:45:30 adrian Exp $
*
* DEBUG: section 80 WCCP Support
* AUTHOR: Glenn Chisholm
*
*/
#include "squid.h"
+#include "comm.h"
#if USE_WCCP
memset(&from, '\0', from_len);
memset(&wccp_i_see_you, '\0', sizeof(wccp_i_see_you));
- statCounter.syscalls.sock.recvfroms++;
-
- len = recvfrom(sock,
+ len = comm_recvfrom(sock,
(void *) &wccp_i_see_you,
WCCP_RESPONSE_SIZE,
0,