]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/stub_comm.cc
4 * DEBUG: section 84 Helper process maintenance
5 * AUTHOR: Robert Collins
7 * SQUID Web Proxy Cache http://www.squid-cache.org/
8 * ----------------------------------------------------------
10 * Squid is the result of efforts by numerous individuals from
11 * the Internet community; see the CONTRIBUTORS file for full
12 * details. Many organizations have provided support for Squid's
13 * development; see the SPONSORS file for full details. Squid is
14 * Copyrighted (C) 2001 by the Regents of the University of
15 * California; see the COPYRIGHT file for full details. Squid
16 * incorporates software developed and/or copyrighted by other
17 * sources; see the CREDITS file for full details.
19 * This program is free software; you can redistribute it and/or modify
20 * it under the terms of the GNU General Public License as published by
21 * the Free Software Foundation; either version 2 of the License, or
22 * (at your option) any later version.
24 * This program is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 * GNU General Public License for more details.
29 * You should have received a copy of the GNU General Public License
30 * along with this program; if not, write to the Free Software
31 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
40 DeferredReadManager::~DeferredReadManager()
42 /* no networked tests yet */
45 DeferredRead::DeferredRead (DeferrableRead
*, void *, CommRead
const &)
47 fatal ("Not implemented");
51 DeferredReadManager::delayRead(DeferredRead
const &aRead
)
53 fatal ("Not implemented");
57 DeferredReadManager::kickReads(int const count
)
59 fatal ("Not implemented");
63 comm_read(int fd
, char *buf
, int size
, IOCB
*handler
, void *handler_data
)
65 fatal ("Not implemented");
69 comm_read(int, char*, int, AsyncCall::Pointer
&callback
)
71 fatal ("Not implemented");
74 /* should be in stub_CommRead */
76 CommRead::CommRead (int fd
, char *buf
, int len
, AsyncCall::Pointer
&callback
)
78 fatal ("Not implemented");
83 fatal ("Not implemented");
87 commSetCloseOnExec(int fd
)
89 /* for tests... ignore */
93 commSetSelect(int fd
, unsigned int type
, PF
* handler
, void *client_data
,
96 /* all test code runs synchronously at the moment */
100 comm_quick_poll_required()
102 /* for tests ... ignore */
106 ignoreErrno(int ierrno
)
108 fatal ("Not implemented");
113 commSetTimeout(int fd
, int timeout
, PF
* handler
, void *data
)
115 fatal ("Not implemented");
120 commSetNonBlocking(int fd
)
122 fatal ("Not implemented");
127 commUnsetNonBlocking(int fd
)
129 fatal ("Not implemented");
133 /* bah, cheating on stub count */
136 ipcCreate(int type
, const char *prog
, const char *const args
[], const char *name
, Ip::Address
&local_addr
, int *rfd
, int *wfd
, void **hIpc
)
138 fatal ("Not implemented");
145 fd_table
=(fde
*) xcalloc(Squid_MaxFD
, sizeof(fde
));
147 /* Keep a few file descriptors free so that we don't run out of FD's
148 * after accepting a client but before it opens a socket or a file.
149 * Since Squid_MaxFD can be as high as several thousand, don't waste them */
150 RESERVED_FD
= min(100, Squid_MaxFD
/ 4);
153 /* MinGW needs also a stub of _comm_close() */
155 _comm_close(int fd
, char const *file
, int line
)
157 fatal ("Not implemented");