#include "squid.h"
#include "base64.h"
#include "ip/Address.h"
#include "ip/tools.h"
#include "time/gadgets.h"
#include "tools/squidclient/gssapi_support.h"
#include "tools/squidclient/Parameters.h"
#include "tools/squidclient/Ping.h"
#include "tools/squidclient/Transport.h"
#include <cassert>
#include <cerrno>
#include <csignal>
#include <cstring>
#include <iostream>
#include <sstream>
Go to the source code of this file.
Classes | |
class | Authorization |
[Proxy-]Authorization header producer More... | |
Macros | |
#define | BUFSIZ 8192 |
Functions | |
static void | usage (const char *progname) |
void | pipe_handler (int sig) |
static void | set_our_signal (void) |
static void | shellUnescape (char *buf) |
int | main (int argc, char *argv[]) |
Variables | |
Parameters | scParams |
global squidcleint parameters More... | |
static int | put_fd |
static char * | put_file = nullptr |
static struct stat | sb |
int | total_bytes = 0 |
static Authorization | ProxyAuthorization ("Proxy-Authorization", "proxy") |
static Authorization | OriginAuthorization ("Authorization", "origin server") |
Macro Definition Documentation
◆ BUFSIZ
#define BUFSIZ 8192 |
Definition at line 57 of file squidclient.cc.
Function Documentation
◆ main()
Definition at line 232 of file squidclient.cc.
References BUFSIZ, Transport::CloseConnection(), Authorization::commit(), Ping::Config, Transport::Config, Transport::Connect(), debugVerbose, Ping::DisplayStats(), Time::FormatRfc1123(), Ping::Init(), Transport::TheConfig::ioTimeout, Ping::LoopDone(), O_BINARY, O_TEXT, optarg, optind, OriginAuthorization, Ping::TheConfig::parseCommandOpts(), Transport::TheConfig::parseCommandOpts(), Authorization::password, port, Ip::ProbeTransport(), ProxyAuthorization, put_fd, put_file, Transport::Read(), safe_free, sb, scParams, set_our_signal(), shellUnescape(), shortOpStr, Transport::ShutdownTls(), Ping::TimerStop(), total_bytes, usage(), Authorization::user, Parameters::verbosityLevel, version, VERSION, Win32SockCleanup(), Transport::Write(), xfree, xisdigit, xstrdup, and xstrerr().
◆ pipe_handler()
void pipe_handler | ( | int | sig | ) |
Definition at line 660 of file squidclient.cc.
Referenced by set_our_signal().
◆ set_our_signal()
|
static |
Definition at line 666 of file squidclient.cc.
References pipe_handler(), and SA_RESTART.
Referenced by main().
◆ shellUnescape()
|
static |
◆ usage()
|
static |
Definition at line 91 of file squidclient.cc.
References Ping::Config, Transport::Config, progname, Ping::TheConfig::usage(), Transport::TheConfig::usage(), and VERSION.
Referenced by main().
Variable Documentation
◆ OriginAuthorization
|
static |
Referenced by main().
◆ ProxyAuthorization
|
static |
Referenced by main().
◆ put_fd
|
static |
Definition at line 68 of file squidclient.cc.
Referenced by main().
◆ put_file
|
static |
Definition at line 69 of file squidclient.cc.
Referenced by main().
◆ sb
|
static |
Definition at line 71 of file squidclient.cc.
Referenced by _db_rotate_log(), aioStat(), Format::Format::assemble(), acl_httpstatus_data::compare(), Fs::Ufs::UFSSwapDir::doubleCheck(), ACLIntRange::dump(), examine_select(), GetPassword(), htcpClear(), htcpQuery(), MimeIcon::load(), logfile_mod_stdio_rotate(), main(), makeExternalAclKey(), netdbReloadState(), MmappedFile::open(), Fs::Ufs::UFSSwapDir::pathIsDirectory(), Fs::Ufs::RebuildState::rebuildFromDirectory(), requirePathnameExists(), rotate(), squidaio_stat(), Fs::Ufs::UFSSwapLogParser::SwapLogEntries(), TestRock::testRockCreate(), TestSBuf::testStdStringOps(), TextArguments(), and Fs::Ufs::UFSSwapDir::writeCleanStart().
◆ scParams
Parameters scParams |
Definition at line 66 of file squidclient.cc.
Referenced by Transport::InitTls(), and main().
◆ total_bytes
int total_bytes = 0 |
Definition at line 72 of file squidclient.cc.
Referenced by main().