]> git.ipfire.org Git - thirdparty/squid.git/blame - src/tests/stub_comm.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / tests / stub_comm.cc
CommitLineData
4e0938ef 1/*
4ac4a490 2 * Copyright (C) 1996-2017 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"
40d34a62 10#include "comm/Connection.h"
d841c88d 11#include "comm/Loops.h"
c8f4eac4 12#include "fde.h"
13
081edc2d
AJ
14#define STUB_API "comm.cc"
15#include "tests/STUB.h"
c8f4eac4 16
081edc2d
AJ
17void comm_read(const Comm::ConnectionPointer &conn, char *buf, int size, IOCB *handler, void *handler_data) STUB
18void comm_read(const Comm::ConnectionPointer &conn, char*, int, AsyncCall::Pointer &callback) STUB
1515a285 19
c8f4eac4 20/* should be in stub_CommRead */
21#include "CommRead.h"
9dca980d 22CommRead::CommRead(const Comm::ConnectionPointer &, char *, int, AsyncCall::Pointer &) STUB
081edc2d
AJ
23CommRead::CommRead() STUB
24DeferredReadManager::~DeferredReadManager() STUB
25DeferredRead::DeferredRead(DeferrableRead *, void *, CommRead const &) STUB
26void DeferredReadManager::delayRead(DeferredRead const &aRead) STUB
27void DeferredReadManager::kickReads(int const count) STUB
28
36378e12
AJ
29#include "comm.h"
30bool comm_iocallbackpending(void) STUB_RETVAL(false)
4ee57cbe 31int commSetNonBlocking(int fd) STUB_RETVAL(Comm::COMM_ERROR)
081edc2d 32int commUnsetNonBlocking(int fd) STUB_RETVAL(-1)
36378e12
AJ
33void commSetCloseOnExec(int fd) STUB_NOP
34void commSetTcpKeepalive(int fd, int idle, int interval, int timeout) STUB
081edc2d 35void _comm_close(int fd, char const *file, int line) STUB
36378e12
AJ
36void old_comm_reset_close(int fd) STUB
37void comm_reset_close(const Comm::ConnectionPointer &conn) STUB
38#if LINGERING_CLOSE
39void comm_lingering_close(int fd) STUB
40#endif
41int comm_connect_addr(int sock, const Ip::Address &addr) STUB_RETVAL(-1)
42void comm_init(void) STUB
43void comm_exit(void) STUB
44int comm_open(int, int, Ip::Address &, int, const char *note) STUB_RETVAL(-1)
081edc2d 45int comm_open_uds(int sock_type, int proto, struct sockaddr_un* addr, int flags) STUB_RETVAL(-1)
36378e12
AJ
46void comm_import_opened(const Comm::ConnectionPointer &, const char *note, struct addrinfo *AI) STUB
47int comm_open_listener(int sock_type, int proto, Ip::Address &addr, int flags, const char *note) STUB_RETVAL(-1)
48void comm_open_listener(int sock_type, int proto, Comm::ConnectionPointer &conn, const char *note) STUB
49int comm_openex(int, int, Ip::Address &, int, tos_t tos, nfmark_t nfmark, const char *) STUB_RETVAL(-1)
50unsigned short comm_local_port(int fd) STUB_RETVAL(0)
51int comm_udp_sendto(int sock, const Ip::Address &to, const void *buf, int buflen) STUB_RETVAL(-1)
52void commCallCloseHandlers(int fd) STUB
53void commUnsetFdTimeout(int fd) STUB
54int commSetTimeout(const Comm::ConnectionPointer &, int, AsyncCall::Pointer&) STUB_RETVAL(-1)
55int commSetConnTimeout(const Comm::ConnectionPointer &conn, int seconds, AsyncCall::Pointer &callback) STUB_RETVAL(-1)
56int commUnsetConnTimeout(const Comm::ConnectionPointer &conn) STUB_RETVAL(-1)
57int ignoreErrno(int ierrno) STUB_RETVAL(-1)
58void commCloseAllSockets(void) STUB
59void checkTimeouts(void) STUB
f2054bc2 60AsyncCall::Pointer comm_add_close_handler(int fd, CLCB *, void *) STUB
36378e12
AJ
61void comm_add_close_handler(int fd, AsyncCall::Pointer &) STUB
62void comm_remove_close_handler(int fd, CLCB *, void *) STUB
63void comm_remove_close_handler(int fd, AsyncCall::Pointer &)STUB
64int comm_udp_recvfrom(int fd, void *buf, size_t len, int flags, Ip::Address &from) STUB_RETVAL(-1)
65int comm_udp_recv(int fd, void *buf, size_t len, int flags) STUB_RETVAL(-1)
66ssize_t comm_udp_send(int s, const void *buf, size_t len, int flags) STUB_RETVAL(-1)
67bool comm_has_incomplete_write(int) STUB_RETVAL(false)
68void commStartHalfClosedMonitor(int fd) STUB
69bool commHasHalfClosedMonitor(int fd) STUB_RETVAL(false)
70int CommSelectEngine::checkEvents(int timeout) STUB_RETVAL(0)
f53969cc 71