Squid Web Cache
master
Loading...
Searching...
No Matches
Tcp.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 1996-2025 The Squid Software Foundation and contributors
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
9
#ifndef SQUID_SRC_COMM_TCP_H
10
#define SQUID_SRC_COMM_TCP_H
11
12
namespace
Comm
13
{
14
16
class
TcpKeepAlive
17
{
18
public
:
19
unsigned
int
idle
= 0;
20
unsigned
int
interval
= 0;
21
unsigned
int
timeout
= 0;
22
bool
enabled
=
false
;
23
};
24
26
void
ApplyTcpKeepAlive
(
int
fd,
const
TcpKeepAlive
&);
27
28
}
// namespace Comm
29
30
#endif
/* SQUID_SRC_COMM_TCP_H */
Comm::TcpKeepAlive
Configuration settings for the TCP keep-alive feature.
Definition
Tcp.h:17
Comm::TcpKeepAlive::idle
unsigned int idle
Definition
Tcp.h:19
Comm::TcpKeepAlive::timeout
unsigned int timeout
Definition
Tcp.h:21
Comm::TcpKeepAlive::interval
unsigned int interval
Definition
Tcp.h:20
Comm::TcpKeepAlive::enabled
bool enabled
Definition
Tcp.h:22
Comm
Abstraction layer for TCP, UDP, TLS, UDS and filedescriptor sockets.
Definition
AcceptLimiter.h:17
Comm::ApplyTcpKeepAlive
void ApplyTcpKeepAlive(int fd, const TcpKeepAlive &)
apply configured TCP keep-alive settings to the given FD socket
Definition
Tcp.cc:49
squid
src
comm
Tcp.h
Generated by
1.9.8