9#ifndef SQUID_SRC_COMM_H
10#define SQUID_SRC_COMM_H
35void _comm_close(
int fd,
char const *file,
int line);
36#define comm_close(x) (_comm_close((x), __FILE__, __LINE__))
92ssize_t
comm_udp_send(
int s,
const void *buf,
size_t len,
int flags);
void CLCB(const CommCloseCbParams ¶ms)
int checkEvents(int timeout) override
void commCallCloseHandlers(int fd)
bool comm_iocallbackpending(void)
int commSetNonBlocking(int fd)
int comm_open_listener(int sock_type, int proto, Ip::Address &addr, int flags, const char *note)
void _comm_close(int fd, char const *file, int line)
unsigned short comm_local_port(int fd)
void old_comm_reset_close(int fd)
void commSetConnTimeout(const Comm::ConnectionPointer &, time_t seconds, AsyncCall::Pointer &)
void commUnsetConnTimeout(const Comm::ConnectionPointer &)
void commSetCloseOnExec(int fd)
void commUnsetFdTimeout(int fd)
clear a timeout handler by FD number
int commUnsetNonBlocking(int fd)
int comm_open_uds(int sock_type, int proto, struct sockaddr_un *addr, int flags)
Create a unix-domain socket (UDS) that only supports FD_MSGHDR I/O.
int comm_open(int, int, Ip::Address &, int, const char *note)
void commMarkHalfClosed(int fd)
bool commHasHalfClosedMonitor(int fd)
checks whether we are waiting for possibly half-closed connection to close
void commCloseAllSockets(void)
bool comm_has_incomplete_write(int)
int comm_udp_recv(int fd, void *buf, size_t len, int flags)
AsyncCall::Pointer comm_add_close_handler(int fd, CLCB *, void *)
void comm_remove_close_handler(int fd, CLCB *, void *)
ssize_t comm_udp_send(int s, const void *buf, size_t len, int flags)
void commStartHalfClosedMonitor(int fd)
Start waiting for a possibly half-closed connection to close.
int comm_connect_addr(int sock, const Ip::Address &addr)
bool commIsHalfClosed(int fd)
int comm_udp_sendto(int sock, const Ip::Address &to, const void *buf, int buflen)
void comm_import_opened(const Comm::ConnectionPointer &, const char *note, struct addrinfo *AI)
update Comm state after getting a comm_open() FD from another process
int comm_udp_recvfrom(int fd, void *buf, size_t len, int flags, Ip::Address &from)
void comm_reset_close(const Comm::ConnectionPointer &conn)