]> git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/stub_comm.cc
Bug 4447:FwdState.cc:447 "serverConnection() == conn" assertion, part2
[thirdparty/squid.git] / src / tests / stub_comm.cc
1 /*
2 * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9 #include "squid.h"
10 #include "comm/Connection.h"
11 #include "comm/Loops.h"
12 #include "fde.h"
13
14 #define STUB_API "comm.cc"
15 #include "tests/STUB.h"
16
17 void comm_read(const Comm::ConnectionPointer &conn, char *buf, int size, IOCB *handler, void *handler_data) STUB
18 void comm_read(const Comm::ConnectionPointer &conn, char*, int, AsyncCall::Pointer &callback) STUB
19
20 /* should be in stub_CommRead */
21 #include "CommRead.h"
22 CommRead::CommRead(const Comm::ConnectionPointer &, char *, int, AsyncCall::Pointer &) STUB
23 CommRead::CommRead() STUB
24 DeferredReadManager::~DeferredReadManager() STUB
25 DeferredRead::DeferredRead(DeferrableRead *, void *, CommRead const &) STUB
26 void DeferredReadManager::delayRead(DeferredRead const &aRead) STUB
27 void DeferredReadManager::kickReads(int const count) STUB
28
29 #include "comm.h"
30 bool comm_iocallbackpending(void) STUB_RETVAL(false)
31 int commSetNonBlocking(int fd) STUB_RETVAL(Comm::COMM_ERROR)
32 int commUnsetNonBlocking(int fd) STUB_RETVAL(-1)
33 void commSetCloseOnExec(int fd) STUB_NOP
34 void commSetTcpKeepalive(int fd, int idle, int interval, int timeout) STUB
35 void _comm_close(int fd, char const *file, int line) STUB
36 void old_comm_reset_close(int fd) STUB
37 void comm_reset_close(const Comm::ConnectionPointer &conn) STUB
38 #if LINGERING_CLOSE
39 void comm_lingering_close(int fd) STUB
40 #endif
41 int comm_connect_addr(int sock, const Ip::Address &addr) STUB_RETVAL(-1)
42 void comm_init(void) STUB
43 void comm_exit(void) STUB
44 int comm_open(int, int, Ip::Address &, int, const char *note) STUB_RETVAL(-1)
45 int comm_open_uds(int sock_type, int proto, struct sockaddr_un* addr, int flags) STUB_RETVAL(-1)
46 void comm_import_opened(const Comm::ConnectionPointer &, const char *note, struct addrinfo *AI) STUB
47 int comm_open_listener(int sock_type, int proto, Ip::Address &addr, int flags, const char *note) STUB_RETVAL(-1)
48 void comm_open_listener(int sock_type, int proto, Comm::ConnectionPointer &conn, const char *note) STUB
49 int comm_openex(int, int, Ip::Address &, int, tos_t tos, nfmark_t nfmark, const char *) STUB_RETVAL(-1)
50 unsigned short comm_local_port(int fd) STUB_RETVAL(0)
51 int comm_udp_sendto(int sock, const Ip::Address &to, const void *buf, int buflen) STUB_RETVAL(-1)
52 void commCallCloseHandlers(int fd) STUB
53 void commUnsetFdTimeout(int fd) STUB
54 int commSetTimeout(const Comm::ConnectionPointer &, int, AsyncCall::Pointer&) STUB_RETVAL(-1)
55 int commSetConnTimeout(const Comm::ConnectionPointer &conn, int seconds, AsyncCall::Pointer &callback) STUB_RETVAL(-1)
56 int commUnsetConnTimeout(const Comm::ConnectionPointer &conn) STUB_RETVAL(-1)
57 int ignoreErrno(int ierrno) STUB_RETVAL(-1)
58 void commCloseAllSockets(void) STUB
59 void checkTimeouts(void) STUB
60 AsyncCall::Pointer comm_add_close_handler(int fd, CLCB *, void *) STUB
61 void comm_add_close_handler(int fd, AsyncCall::Pointer &) STUB
62 void comm_remove_close_handler(int fd, CLCB *, void *) STUB
63 void comm_remove_close_handler(int fd, AsyncCall::Pointer &)STUB
64 int comm_udp_recvfrom(int fd, void *buf, size_t len, int flags, Ip::Address &from) STUB_RETVAL(-1)
65 int comm_udp_recv(int fd, void *buf, size_t len, int flags) STUB_RETVAL(-1)
66 ssize_t comm_udp_send(int s, const void *buf, size_t len, int flags) STUB_RETVAL(-1)
67 bool comm_has_incomplete_write(int) STUB_RETVAL(false)
68 void commStartHalfClosedMonitor(int fd) STUB
69 bool commHasHalfClosedMonitor(int fd) STUB_RETVAL(false)
70 int CommSelectEngine::checkEvents(int timeout) STUB_RETVAL(0)
71