Tcp.cc File Reference
#include "squid.h"
#include "comm/Tcp.h"
#include "Debug.h"
#include <type_traits>
Include dependency graph for Tcp.cc:

Go to the source code of this file.

Functions

template<typename Option >
static bool SetSocketOption (const int fd, const int level, const int optName, const Option &optValue)
 setsockopt(2) wrapper More...
 
static bool SetBooleanSocketOption (const int fd, const int level, const int optName, const bool enable)
 setsockopt(2) wrapper for setting typical on/off options More...
 

Function Documentation

◆ SetBooleanSocketOption()

static bool SetBooleanSocketOption ( const int  fd,
const int  level,
const int  optName,
const bool  enable 
)
static

Definition at line 43 of file Tcp.cc.

References SetSocketOption().

Referenced by Comm::ApplyTcpKeepAlive().

◆ SetSocketOption()

template<typename Option >
static bool SetSocketOption ( const int  fd,
const int  level,
const int  optName,
const Option &  optValue 
)
static

Definition at line 26 of file Tcp.cc.

References DBG_IMPORTANT, debugs, and xstrerr().

Referenced by Comm::ApplyTcpKeepAlive(), and SetBooleanSocketOption().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors