-
Notifications
You must be signed in to change notification settings - Fork 638
Expand file tree
/
Copy pathstub_comm.cc
More file actions
67 lines (59 loc) · 2.86 KB
/
stub_comm.cc
File metadata and controls
67 lines (59 loc) · 2.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*
* Copyright (C) 1996-2026 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
* Please see the COPYING and CONTRIBUTORS files for details.
*/
#include "squid.h"
#include "comm.h"
#include "comm/Connection.h"
#include "comm/Loops.h"
// #include "comm/Read.h"
#include "fde.h"
#define STUB_API "comm.cc"
#include "tests/STUB.h"
#include <ostream>
// void comm_read(const Comm::ConnectionPointer &, char *, int, IOCB *, void *) STUB
// void comm_read(const Comm::ConnectionPointer &, char*, int, AsyncCall::Pointer &) STUB
/* should be in stub_libbase */
#include "base/DelayedAsyncCalls.h"
void DelayedAsyncCalls::delay(const AsyncCall::Pointer &) STUB
void DelayedAsyncCalls::schedule() STUB
#include "comm.h"
bool comm_iocallbackpending(void) STUB_RETVAL(false)
int commSetNonBlocking(int) STUB_RETVAL(Comm::COMM_ERROR)
int commUnsetNonBlocking(int) STUB_RETVAL(-1)
void commSetCloseOnExec(int) STUB_NOP
void _comm_close(int, char const *, int) STUB
void old_comm_reset_close(int) STUB
void comm_reset_close(const Comm::ConnectionPointer &) STUB
int comm_connect_addr(int, const Ip::Address &) STUB_RETVAL(-1)
void comm_init(void) STUB
void comm_exit(void) STUB
int comm_open(int, int, Ip::Address &, int, const char *) STUB_RETVAL(-1)
int comm_open_uds(int, int, struct sockaddr_un*, int) STUB_RETVAL(-1)
void comm_import_opened(const Comm::ConnectionPointer &, const char *, struct addrinfo *) STUB
int comm_open_listener(int, int, Ip::Address &, int, const char *) STUB_RETVAL(-1)
void comm_open_listener(int, int, Comm::ConnectionPointer &, const char *) STUB
unsigned short comm_local_port(int) STUB_RETVAL(0)
int comm_udp_sendto(int, const Ip::Address &, const void *, int) STUB_RETVAL(-1)
void commCallCloseHandlers(int) STUB
void commUnsetFdTimeout(int) STUB
// int commSetTimeout(const Comm::ConnectionPointer &, int, AsyncCall::Pointer&) STUB_RETVAL(-1)
void commSetConnTimeout(const Comm::ConnectionPointer &, time_t, AsyncCall::Pointer &) STUB
void commUnsetConnTimeout(const Comm::ConnectionPointer &) STUB
int ignoreErrno(int) STUB_RETVAL(-1)
void commCloseAllSockets(void) STUB
void checkTimeouts(void) STUB
AsyncCall::Pointer comm_add_close_handler(int, CLCB *, void *) STUB
void comm_add_close_handler(int, AsyncCall::Pointer &) STUB
void comm_remove_close_handler(int, CLCB *, void *) STUB
void comm_remove_close_handler(int, AsyncCall::Pointer &)STUB
int comm_udp_recvfrom(int, void *, size_t, int, Ip::Address &) STUB_RETVAL(-1)
int comm_udp_recv(int, void *, size_t, int) STUB_RETVAL(-1)
ssize_t comm_udp_send(int, const void *, size_t, int) STUB_RETVAL(-1)
bool comm_has_incomplete_write(int) STUB_RETVAL(false)
void commStartHalfClosedMonitor(int) STUB
bool commHasHalfClosedMonitor(int) STUB_RETVAL(false)
int CommSelectEngine::checkEvents(int) STUB_RETVAL(0)