]> git.ipfire.org Git - thirdparty/squid.git/blame - src/tests/stub_comm.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / tests / stub_comm.cc
CommitLineData
c8f4eac4 1/*
c8f4eac4 2 * DEBUG: section 84 Helper process maintenance
3 * AUTHOR: Robert Collins
4 *
5 * SQUID Web Proxy Cache http://www.squid-cache.org/
6 * ----------------------------------------------------------
7 *
8 * Squid is the result of efforts by numerous individuals from
9 * the Internet community; see the CONTRIBUTORS file for full
10 * details. Many organizations have provided support for Squid's
11 * development; see the SPONSORS file for full details. Squid is
12 * Copyrighted (C) 2001 by the Regents of the University of
13 * California; see the COPYRIGHT file for full details. Squid
14 * incorporates software developed and/or copyrighted by other
15 * sources; see the CREDITS file for full details.
16 *
17 * This program is free software; you can redistribute it and/or modify
18 * it under the terms of the GNU General Public License as published by
19 * the Free Software Foundation; either version 2 of the License, or
20 * (at your option) any later version.
26ac0430 21 *
c8f4eac4 22 * This program is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU General Public License for more details.
26ac0430 26 *
c8f4eac4 27 * You should have received a copy of the GNU General Public License
28 * along with this program; if not, write to the Free Software
29 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
30 *
31 */
32
f7f3304a 33#include "squid.h"
c8f4eac4 34#include "comm.h"
40d34a62 35#include "comm/Connection.h"
d841c88d 36#include "comm/Loops.h"
c8f4eac4 37#include "fde.h"
38
081edc2d
AJ
39#define STUB_API "comm.cc"
40#include "tests/STUB.h"
c8f4eac4 41
081edc2d
AJ
42void comm_read(const Comm::ConnectionPointer &conn, char *buf, int size, IOCB *handler, void *handler_data) STUB
43void comm_read(const Comm::ConnectionPointer &conn, char*, int, AsyncCall::Pointer &callback) STUB
1515a285 44
c8f4eac4 45/* should be in stub_CommRead */
46#include "CommRead.h"
9dca980d 47CommRead::CommRead(const Comm::ConnectionPointer &, char *, int, AsyncCall::Pointer &) STUB
081edc2d
AJ
48CommRead::CommRead() STUB
49DeferredReadManager::~DeferredReadManager() STUB
50DeferredRead::DeferredRead(DeferrableRead *, void *, CommRead const &) STUB
51void DeferredReadManager::delayRead(DeferredRead const &aRead) STUB
52void DeferredReadManager::kickReads(int const count) STUB
53
54void commSetCloseOnExec(int fd) STUB_NOP
55int ignoreErrno(int ierrno) STUB_RETVAL(-1)
56
57void commUnsetFdTimeout(int fd) STUB
4ee57cbe 58int commSetNonBlocking(int fd) STUB_RETVAL(Comm::COMM_ERROR)
081edc2d
AJ
59int commUnsetNonBlocking(int fd) STUB_RETVAL(-1)
60
61// MinGW needs also a stub of _comm_close()
62void _comm_close(int fd, char const *file, int line) STUB
63int commSetTimeout(int fd, int timeout, AsyncCall::Pointer& callback) STUB_RETVAL(-1)
64int comm_open_uds(int sock_type, int proto, struct sockaddr_un* addr, int flags) STUB_RETVAL(-1)
65void comm_write(int fd, const char *buf, int size, AsyncCall::Pointer &callback, FREE * free_func) STUB