]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
send() - > comm_send()
authoradrian <>
Mon, 21 Oct 2002 11:54:36 +0000 (11:54 +0000)
committeradrian <>
Mon, 21 Oct 2002 11:54:36 +0000 (11:54 +0000)
src/icmp.cc
src/ipc.cc
src/wccp.cc

index 35aeb9ef4855485bde0698c33c87028d45421269..b5d9d7ddcecabf3d4d2f3a47732d1e7cd4b85459 100644 (file)
@@ -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) {
index 9eb054b420eb0f7e76ffc404152a6af1867e5faf..b6365ddff628ac678e3e02f8d3ca39cdbe98e608 100644 (file)
@@ -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");
index 9f7f7c9df00b90c61f0a812a7681c08a37f678b9..4e67b2bd71158e68796b7b8e6c66b1c51063e157 100644 (file)
@@ -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);