]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/stub_comm.cc
ba398f18cd0027131abed86dfb8e304b6af1e37e
2 * Copyright (C) 1996-2022 The Squid Software Foundation and contributors
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.
11 #include "comm/Connection.h"
12 #include "comm/Loops.h"
13 // #include "comm/Read.h"
16 #define STUB_API "comm.cc"
17 #include "tests/STUB.h"
21 // void comm_read(const Comm::ConnectionPointer &, char *, int, IOCB *, void *) STUB
22 // void comm_read(const Comm::ConnectionPointer &, char*, int, AsyncCall::Pointer &) STUB
24 /* should be in stub_libbase */
25 #include "base/DelayedAsyncCalls.h"
26 void DelayedAsyncCalls::delay(const AsyncCall::Pointer
&) STUB
27 void DelayedAsyncCalls::schedule() STUB
30 bool comm_iocallbackpending(void) STUB_RETVAL(false)
31 int commSetNonBlocking(int) STUB_RETVAL(Comm::COMM_ERROR
)
32 int commUnsetNonBlocking(int) STUB_RETVAL(-1)
33 void commSetCloseOnExec(int) STUB_NOP
34 void _comm_close(int, char const *, int) STUB
35 void old_comm_reset_close(int) STUB
36 void comm_reset_close(const Comm::ConnectionPointer
&) STUB
37 int comm_connect_addr(int, const Ip::Address
&) STUB_RETVAL(-1)
39 void comm_init(void) STUB
40 void comm_exit(void) STUB
41 int comm_open(int, int, Ip::Address
&, int, const char *) STUB_RETVAL(-1)
42 int comm_open_uds(int, int, struct sockaddr_un
*, int) STUB_RETVAL(-1)
43 void comm_import_opened(const Comm::ConnectionPointer
&, const char *, struct addrinfo
*) STUB
44 int comm_open_listener(int, int, Ip::Address
&, int, const char *) STUB_RETVAL(-1)
45 void comm_open_listener(int, int, Comm::ConnectionPointer
&, const char *) STUB
46 unsigned short comm_local_port(int) STUB_RETVAL(0)
47 int comm_udp_sendto(int, const Ip::Address
&, const void *, int) STUB_RETVAL(-1)
48 void commCallCloseHandlers(int) STUB
49 void commUnsetFdTimeout(int) STUB
50 // int commSetTimeout(const Comm::ConnectionPointer &, int, AsyncCall::Pointer&) STUB_RETVAL(-1)
51 int commSetConnTimeout(const Comm::ConnectionPointer
&, int, AsyncCall::Pointer
&) STUB_RETVAL(-1)
52 int commUnsetConnTimeout(const Comm::ConnectionPointer
&) STUB_RETVAL(-1)
53 int ignoreErrno(int) STUB_RETVAL(-1)
54 void commCloseAllSockets(void) STUB
55 void checkTimeouts(void) STUB
56 AsyncCall::Pointer
comm_add_close_handler(int, CLCB
*, void *) STUB
57 void comm_add_close_handler(int, AsyncCall::Pointer
&) STUB
58 void comm_remove_close_handler(int, CLCB
*, void *) STUB
59 void comm_remove_close_handler(int, AsyncCall::Pointer
&)STUB
60 int comm_udp_recvfrom(int, void *, size_t, int, Ip::Address
&) STUB_RETVAL(-1)
61 int comm_udp_recv(int, void *, size_t, int) STUB_RETVAL(-1)
62 ssize_t
comm_udp_send(int, const void *, size_t, int) STUB_RETVAL(-1)
63 bool comm_has_incomplete_write(int) STUB_RETVAL(false)
64 void commStartHalfClosedMonitor(int) STUB
65 bool commHasHalfClosedMonitor(int) STUB_RETVAL(false)
66 int CommSelectEngine::checkEvents(int) STUB_RETVAL(0)