From: adrian <> Date: Mon, 21 Oct 2002 11:54:36 +0000 (+0000) Subject: send() - > comm_send() X-Git-Tag: SQUID_3_0_PRE1~607 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03c5d1ff55b53045ef01a5327ea8396579516528;p=thirdparty%2Fsquid.git send() - > comm_send() --- diff --git a/src/icmp.cc b/src/icmp.cc index 35aeb9ef48..b5d9d7ddce 100644 --- a/src/icmp.cc +++ b/src/icmp.cc @@ -1,6 +1,6 @@ /* - * $Id: icmp.cc,v 1.76 2002/10/21 05:49:59 adrian Exp $ + * $Id: icmp.cc,v 1.77 2002/10/21 05:54:36 adrian Exp $ * * DEBUG: section 37 ICMP Routines * AUTHOR: Duane Wessels @@ -115,7 +115,7 @@ icmpSend(pingerEchoData * pkt, int len) return; debug(37, 2) ("icmpSend: to %s, opcode %d, len %d\n", inet_ntoa(pkt->to), (int) pkt->opcode, pkt->psize); - x = send(icmp_sock, (char *) pkt, len, 0); + x = comm_send(icmp_sock, (char *) pkt, len, 0); if (x < 0) { debug(50, 1) ("icmpSend: send: %s\n", xstrerror()); if (errno == ECONNREFUSED || errno == EPIPE) { diff --git a/src/ipc.cc b/src/ipc.cc index 9eb054b420..b6365ddff6 100644 --- a/src/ipc.cc +++ b/src/ipc.cc @@ -1,6 +1,6 @@ /* - * $Id: ipc.cc,v 1.31 2002/10/21 05:49:59 adrian Exp $ + * $Id: ipc.cc,v 1.32 2002/10/21 05:54:36 adrian Exp $ * * DEBUG: section 54 Interprocess Communication * AUTHOR: Duane Wessels @@ -259,7 +259,7 @@ ipcCreate(int type, const char *prog, const char *const args[], const char *name return ipcCloseAllFD(prfd, pwfd, crfd, cwfd); } if (type == IPC_UDP_SOCKET) { - x = send(cwfd, hello_string, strlen(hello_string) + 1, 0); + x = comm_send(cwfd, hello_string, strlen(hello_string) + 1, 0); if (x < 0) { debug(50, 0) ("sendto FD %d: %s\n", cwfd, xstrerror()); debug(50, 0) ("ipcCreate: CHILD: hello write test failed\n"); diff --git a/src/wccp.cc b/src/wccp.cc index 9f7f7c9df0..4e67b2bd71 100644 --- a/src/wccp.cc +++ b/src/wccp.cc @@ -1,6 +1,6 @@ /* - * $Id: wccp.cc,v 1.26 2002/10/21 05:45:30 adrian Exp $ + * $Id: wccp.cc,v 1.27 2002/10/21 05:54:36 adrian Exp $ * * DEBUG: section 80 WCCP Support * AUTHOR: Glenn Chisholm @@ -270,7 +270,7 @@ wccpHereIam(void *voidnotused) debug(80, 6) ("wccpHereIam: Called\n"); wccp_here_i_am.id = wccp_i_see_you.id; - send(theOutWccpConnection, + comm_send(theOutWccpConnection, &wccp_here_i_am, sizeof(wccp_here_i_am), 0); @@ -327,7 +327,7 @@ wccpAssignBuckets(void) wccp_assign_bucket->id = wccp_i_see_you.id; wccp_assign_bucket->number = wccp_i_see_you.number; - send(theOutWccpConnection, + comm_send(theOutWccpConnection, buf, wab_len + WCCP_BUCKETS + cache_len, 0);