]>
Commit | Line | Data |
---|---|---|
4e0938ef | 1 | /* |
f70aedc4 | 2 | * Copyright (C) 1996-2021 The Squid Software Foundation and contributors |
4e0938ef AJ |
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 | ||
f7f3304a | 9 | #include "squid.h" |
8b082ed9 | 10 | #include "comm.h" |
40d34a62 | 11 | #include "comm/Connection.h" |
d841c88d | 12 | #include "comm/Loops.h" |
8b082ed9 | 13 | // #include "comm/Read.h" |
c8f4eac4 | 14 | #include "fde.h" |
15 | ||
081edc2d AJ |
16 | #define STUB_API "comm.cc" |
17 | #include "tests/STUB.h" | |
c8f4eac4 | 18 | |
6043e368 AR |
19 | #include <ostream> |
20 | ||
8b082ed9 FC |
21 | // void comm_read(const Comm::ConnectionPointer &, char *, int, IOCB *, void *) STUB |
22 | // void comm_read(const Comm::ConnectionPointer &, char*, int, AsyncCall::Pointer &) STUB | |
1515a285 | 23 | |
c8f4eac4 | 24 | /* should be in stub_CommRead */ |
25 | #include "CommRead.h" | |
9dca980d | 26 | CommRead::CommRead(const Comm::ConnectionPointer &, char *, int, AsyncCall::Pointer &) STUB |
081edc2d AJ |
27 | CommRead::CommRead() STUB |
28 | DeferredReadManager::~DeferredReadManager() STUB | |
29 | DeferredRead::DeferredRead(DeferrableRead *, void *, CommRead const &) STUB | |
8b082ed9 FC |
30 | void DeferredReadManager::delayRead(DeferredRead const &) STUB |
31 | void DeferredReadManager::kickReads(int const) STUB | |
081edc2d | 32 | |
36378e12 AJ |
33 | #include "comm.h" |
34 | bool comm_iocallbackpending(void) STUB_RETVAL(false) | |
8b082ed9 FC |
35 | int commSetNonBlocking(int) STUB_RETVAL(Comm::COMM_ERROR) |
36 | int commUnsetNonBlocking(int) STUB_RETVAL(-1) | |
37 | void commSetCloseOnExec(int) STUB_NOP | |
38 | void _comm_close(int, char const *, int) STUB | |
39 | void old_comm_reset_close(int) STUB | |
40 | void comm_reset_close(const Comm::ConnectionPointer &) STUB | |
41 | int comm_connect_addr(int, const Ip::Address &) STUB_RETVAL(-1) | |
42 | ||
36378e12 AJ |
43 | void comm_init(void) STUB |
44 | void comm_exit(void) STUB | |
8b082ed9 FC |
45 | int comm_open(int, int, Ip::Address &, int, const char *) STUB_RETVAL(-1) |
46 | int comm_open_uds(int, int, struct sockaddr_un*, int) STUB_RETVAL(-1) | |
47 | void comm_import_opened(const Comm::ConnectionPointer &, const char *, struct addrinfo *) STUB | |
48 | int comm_open_listener(int, int, Ip::Address &, int, const char *) STUB_RETVAL(-1) | |
49 | void comm_open_listener(int, int, Comm::ConnectionPointer &, const char *) STUB | |
50 | // int comm_openex(int, int, Ip::Address &, int, tos_t, nfmark_t, const char *) STUB_RETVAL(-1) | |
51 | unsigned short comm_local_port(int) STUB_RETVAL(0) | |
52 | int comm_udp_sendto(int, const Ip::Address &, const void *, int) STUB_RETVAL(-1) | |
53 | void commCallCloseHandlers(int) STUB | |
54 | void commUnsetFdTimeout(int) STUB | |
55 | // int commSetTimeout(const Comm::ConnectionPointer &, int, AsyncCall::Pointer&) STUB_RETVAL(-1) | |
56 | int commSetConnTimeout(const Comm::ConnectionPointer &, int, AsyncCall::Pointer &) STUB_RETVAL(-1) | |
57 | int commUnsetConnTimeout(const Comm::ConnectionPointer &) STUB_RETVAL(-1) | |
58 | int ignoreErrno(int) STUB_RETVAL(-1) | |
36378e12 AJ |
59 | void commCloseAllSockets(void) STUB |
60 | void checkTimeouts(void) STUB | |
8b082ed9 FC |
61 | AsyncCall::Pointer comm_add_close_handler(int, CLCB *, void *) STUB |
62 | void comm_add_close_handler(int, AsyncCall::Pointer &) STUB | |
63 | void comm_remove_close_handler(int, CLCB *, void *) STUB | |
64 | void comm_remove_close_handler(int, AsyncCall::Pointer &)STUB | |
65 | int comm_udp_recvfrom(int, void *, size_t, int, Ip::Address &) STUB_RETVAL(-1) | |
66 | int comm_udp_recv(int, void *, size_t, int) STUB_RETVAL(-1) | |
67 | ssize_t comm_udp_send(int, const void *, size_t, int) STUB_RETVAL(-1) | |
36378e12 | 68 | bool comm_has_incomplete_write(int) STUB_RETVAL(false) |
8b082ed9 FC |
69 | void commStartHalfClosedMonitor(int) STUB |
70 | bool commHasHalfClosedMonitor(int) STUB_RETVAL(false) | |
71 | int CommSelectEngine::checkEvents(int) STUB_RETVAL(0) | |
d22511f9 | 72 |