From: adrian <> Date: Mon, 21 Oct 2002 11:54:12 +0000 (+0000) Subject: add a send(0 wrapper. X-Git-Tag: SQUID_3_0_PRE1~608 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f71da12c99af50433a999c8fc866f807b4037a65;p=thirdparty%2Fsquid.git add a send(0 wrapper. --- diff --git a/src/comm.cc b/src/comm.cc index 6281c43280..2e9335f177 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -1,6 +1,6 @@ /* - * $Id: comm.cc,v 1.342 2002/10/21 05:47:25 adrian Exp $ + * $Id: comm.cc,v 1.343 2002/10/21 05:54:12 adrian Exp $ * * DEBUG: section 5 Socket Functions * AUTHOR: Harvest Derived @@ -567,6 +567,11 @@ comm_recv(int fd, void *buf, size_t len, int flags) return comm_recvfrom(fd, buf, len, flags, NULL, 0); } +ssize_t +comm_send(int s, const void *buf, size_t len, int flags) +{ + return send(s, buf, len, flags); +} /* Older stuff */ diff --git a/src/comm.h b/src/comm.h index 24e130aa7a..35bca889b9 100644 --- a/src/comm.h +++ b/src/comm.h @@ -14,5 +14,6 @@ extern void fdc_open(int fd, unsigned int type, char *desc); extern int comm_recvfrom(int fd, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlen); extern int comm_recv(int fd, void *buf, size_t len, int flags); +extern ssize_t comm_send(int s, const void *buf, size_t len, int flags); #endif