Transport Namespace Reference

Classes

class  TheConfig
 parameters controlling outgoing connection More...
 

Functions

bool Connect ()
 locate and connect to the configured server More...
 
void CloseConnection ()
 close the current connection More...
 
void InitTls ()
 Initialize TLS library environment when necessary. More...
 
bool MaybeStartTls (const char *hostname)
 
void ShutdownTls ()
 De-initialize TLS library environment when necessary. More...
 
ssize_t Write (void *buf, size_t len)
 
ssize_t Read (void *buf, size_t len)
 

Variables

TheConfig Config
 

Function Documentation

void Transport::CloseConnection ( )

Definition at line 285 of file Transport.cc.

References conn.

Referenced by main().

bool Transport::Connect ( )
bool Transport::MaybeStartTls ( const char *  hostname)

perform TLS handshake on the currently open connection if TLS library has been initialized. return false on errors, true otherwise even if TLS not performed.

Definition at line 488 of file Transport.cc.

References Config, Transport::TheConfig::session, Transport::TheConfig::tlsEnabled, tryTlsAnonymous(), and tryTlsCertificate().

Referenced by Connect().

ssize_t Transport::Read ( void *  buf,
size_t  len 
)

read up to len bytes from the currently open connection.

Returns
the number of bytes read, or -1 on errors

Definition at line 262 of file Transport.cc.

References Config, conn, Transport::TheConfig::ioTimeout, Transport::TheConfig::session, and Transport::TheConfig::tlsEnabled.

Referenced by main().

ssize_t Transport::Write ( void *  buf,
size_t  len 
)

write len bytes to the currently open connection.

Returns
the number of bytes written, or -1 on errors

Definition at line 238 of file Transport.cc.

References Config, conn, Transport::TheConfig::ioTimeout, len, Transport::TheConfig::session, and Transport::TheConfig::tlsEnabled.

Referenced by main().

Variable Documentation

Transport::TheConfig Transport::Config

Definition at line 23 of file Transport.cc.

Referenced by accessLogClose(), accessLogInit(), accessLogLog(), accessLogRotate(), ACLFilledChecklist::ACLFilledChecklist(), CacheManager::ActionProtection(), addedEntry(), addSwapDir(), HttpHeader::addVia(), Store::Disks::anchorCollapsed(), asnCacheStart(), Client::blockCaching(), clientReplyContext::blockedHit(), CollapsedForwarding::Broadcast(), ErrorState::BuildContent(), ConnStateData::buildFakeRequest(), ErrorState::BuildHttpReply(), clientReplyContext::buildReplyHeader(), ConnStateData::buildSslCertGenerationParams(), clientReplyContext::cacheHit(), HttpReply::calcMaxBodySize(), Store::Disks::callback(), carpCachemgr(), carpInit(), catchSignal(), Ftp::Gateway::checkAuth(), Ftp::Server::checkDataConnPre(), SignalEngine::checkEvents(), checkFailureRatio(), Http::ContentLengthInterpreter::checkList(), ClientRequestContext::checkNoCache(), CacheManager::CheckPassword(), CheckQuickAbortIsReasonable(), FwdState::checkRetry(), StoreEntry::checkTooSmall(), Http::ContentLengthInterpreter::checkValue(), IpcIoRr::claimMemoryNeeds(), ClientRequestContext::clientAccessCheck(), ClientRequestContext::clientAccessCheck2(), ClientRequestContext::clientAccessCheckDone(), clientBeginRequest(), clientdbCutoffDenied(), clientdbEstablished(), clientdbGetInfo(), clientdbUpdate(), clientFollowXForwardedForCheck(), clientHttpConnectionsOpen(), clientInterpretRequestHeaders(), clientIsContentLengthValid(), clientIsRequestBodyTooLargeForPolicy(), ConnStateData::clientParseRequests(), clientProcessRequest(), ClientRequestContext::clientRedirectDone(), ClientRequestContext::clientRedirectStart(), ClientRequestContext::clientStoreIdStart(), clientTunnelOnError(), comm_apply_flags(), comm_open_uds(), comm_poll_dns_incoming(), comm_poll_tcp_incoming(), comm_poll_udp_incoming(), comm_select_dns_incoming(), comm_select_tcp_incoming(), comm_select_udp_incoming(), testUfs::commonInit(), testRock::commonInit(), commonInit(), configDoConfigure(), configFreeMemory(), Connect(), Ftp::Client::connectDataChannel(), Comm::Connection::connectTimeout(), ConnStateData::connFinishedWithConn(), ConnStateData::ConnStateData(), ErrorState::Convert(), copyOneHeaderFromClientsideRequestToUpstreamRequest(), CpuAffinityCheck(), CpuAffinityInit(), Store::Disks::create(), CollapsedForwardingRr::create(), Rock::SwapDirRr::create(), TransientsRr::create(), SharedSessionCacheRr::create(), IpcIoRr::create(), MemStoreRr::create(), MimeIcon::created(), ICP2State::created(), clientReplyContext::createStoreEntry(), Store::Disks::currentCount(), Store::Disks::currentSize(), death(), DelayId::DelayClient(), Http::One::Parser::DelimiterCharacters(), StoreEntry::disk(), Ping::DisplayStats(), ClientHttpRequest::doCallouts(), Comm::ConnOpener::doConnect(), Http::One::RequestParser::doParse(), Mgr::OfflineToggleAction::dump(), dump_memcachemode(), dump_UrlHelperTimeout(), DumpInfo(), Log::TcpLogger::EndLine(), enter_suid(), MemStore::EntryLimit(), Transients::EntryLimit(), errorInitialize(), Http::One::ErrorLevel(), esiEnableProcessing(), externalAclInit(), externalAclShutdown(), externalAclStats(), Fs::Ufs::UFSSwapDir::FilenoBelongsHere(), MemStoreRr::finalizeConfig(), find_externalAclHelper(), ACL::FindByName(), HttpStateData::finishingBrokenPost(), Kids::forgetOldFailures(), FwdState::ForwardTimeout(), fqdncache_init(), fqdncache_restart(), fqdncacheParse(), free_peer(), free_UrlHelperTimeout(), Ftp::Gateway::ftpAcceptDataConnection(), ftpSendPORT(), FwdState::FwdState(), Ftp::Gateway::Gateway(), Store::Disks::get(), getDefaultParent(), getFirstPeer(), getFirstUpParent(), AccessLogEntry::getLogClientIp(), getMyHostname(), Fs::Ufs::RebuildState::getNextFile(), getOutgoingAddress(), HttpRequest::getRangeOffsetLimit(), getRoundRobinParent(), ConnStateData::getSslContextDone(), Store::Disks::getStats(), Store::Controller::getStats(), Ssl::PeekingPeerConnector::getTlsContext(), Security::BlindPeerConnector::getTlsContext(), getWeightedRoundRobinParent(), testHttp1Parser::globalSetup(), gopherReadReply(), gopherStart(), HttpStateData::handle1xx(), Client::handleAdaptationBlocked(), Fs::Ufs::UFSSwapDir::HandleCleanEvent(), Ftp::Client::handleEpsvReply(), Ftp::Client::handlePasvReply(), Ftp::Server::handleUploadRequest(), HttpReply::hdrExpirationTime(), ClientRequestContext::hostHeaderVerify(), ClientRequestContext::hostHeaderVerifyFailed(), htcpForwardClr(), htcpHandleClr(), htcpHandleTstRequest(), htcpIncomingConnectionOpened(), htcpLogHtcp(), htcpOpenPorts(), HttpStateData::httpBuildRequestHeader(), Log::Format::HttpdCombined(), Log::Format::HttpdCommon(), httpHdrMangleList(), HttpRequestMethod::HttpRequestMethod(), HttpRequestMethod::HttpRequestMethodXXX(), httpsEstablish(), IamPrimaryProcess(), IamWorkerProcess(), icapLogClose(), icapLogLog(), icapLogOpen(), icapLogRotate(), icpAccessAllowed(), icpCheckUdpHit(), icpIncomingConnectionOpened(), icpLogIcp(), icpOpenPorts(), clientReplyContext::identifyFoundObject(), Http::One::Server::idleTimeout(), Ftp::Server::idleTimeout(), idnsAddMDNSNameservers(), idnsALookup(), idnsCheckMDNS(), idnsCheckQueue(), idnsDoSendQueryVC(), idnsInitVC(), idnsParseNameservers(), idnsPTRLookup(), idnsRead(), idnsSendSlaveAAAAQuery(), idnsStats(), idnsTickleQueue(), InDaemonMode(), Dns::Init(), Store::Disks::init(), Kids::init(), Store::Controller::init(), DelayBucket::init(), Ping::Init(), MemStore::init(), DiskdIOStrategy::init(), ACL::Initialize(), Security::PeerConnector::initialize(), initializeSessionCache(), InitTls(), internalHostname(), internalHostnameIs(), internalRemoteUri(), Adaptation::Icap::Config::io_timeout(), ipcache_entry::ipcache_entry(), ipcache_init(), ipcache_restart(), ipcacheHandleReply(), ipcCreate(), HttpStateData::keepaliveAccounting(), Store::Controller::keepForLocalMemoryCache(), TunnelStateData::keepGoingAfterRead(), leave_suid(), TemplateFile::loadDefault(), TemplateFile::loadFor(), Fs::Ufs::UFSSwapDir::logFile(), logfile_mod_daemon_lineend(), logfile_mod_daemon_open(), logfile_mod_stdio_open(), logfile_mod_udp_open(), ClientHttpRequest::logRequest(), Ping::LoopDone(), mail_warranty(), main(), mainInitialize(), mainReconfigureFinish(), mainSetCwd(), Store::Disks::maintain(), Fs::Ufs::UFSSwapDir::maintain(), HttpRequest::manager(), masterReviveKids(), ACLDestinationIP::match(), Store::Disk::maxObjectSize(), MemStore::maxObjectSize(), Store::Disks::maxSize(), MemStore::maxSize(), Server::maybeMakeSpaceAvailable(), HttpStateData::maybeMakeSpaceAvailable(), Ftp::Client::maybeReadVirginBody(), MaybeStartTls(), StoreEntry::mayStartSwapOut(), ConnStateData::mayTunnelUnsupportedProto(), memClean(), memConfigure(), StoreEntry::memoryCachable(), mimeGetIconURL(), Store::Disk::minObjectSize(), Store::Disks::minSize(), Store::Disk::minSize(), Rock::SwapDir::needsDiskStrand(), StoreEntry::negativeCache(), neighborDumpPeers(), neighborRemove(), neighbors_init(), neighborsCount(), neighborsDigestSelect(), neighborsHtcpClear(), neighborsUdpPing(), neighborUp(), netdbAdd(), netdbInit(), netdbPurgeLRU(), netdbReloadState(), netdbSaveState(), netdbSendPing(), no_suid(), NumberOfKids(), Comm::TcpAcceptor::oldAccept(), Fs::Ufs::UFSSwapDir::openLog(), Http::One::ResponseParser::parse(), Format::Token::parse(), URL::parse(), HttpHeaderEntry::parse(), Fs::Ufs::UFSSwapDir::parse(), HttpHeader::parse(), Http::Message::parse(), parse_memcachemode(), parse_obsolete(), parse_peer(), parse_UrlHelperTimeout(), ACL::ParseAclLine(), parseConfigFileOrThrow(), parseEtcHosts(), parseHttpRequest(), Ftp::ParseIpPort(), Ftp::Server::parseOneRequest(), Ftp::ParseProtoIpPort(), Http::One::RequestParser::parseRequestFirstLine(), Http::One::ResponseParser::parseResponseFirstLine(), FwdState::pconnPop(), peer_Inst(), peerCheckNetdbDirect(), peerClearRR(), peerConnectTimeout(), peerCountMcastPeersStart(), peerFindByName(), peerFindByNameAndPort(), peerGetAllParents(), peerHtcpParentMiss(), peerIcpParentMiss(), peerRefreshDNS(), peerSelectDnsPaths(), peerSelectFoo(), peerSourceHashCachemgr(), peerSourceHashInit(), peerUserHashCachemgr(), peerUserHashInit(), peerWouldBePinged(), PidFilenameCalc(), ConnStateData::pipelinePrefetchMax(), MemObject::policyLowestOffsetToKeep(), ConnStateData::postHttpsAccept(), prepareAcceleratedURL(), ACLMaxConnection::prepareForUse(), prepareLogWithRequestDetails(), prepareTransparentURL(), clientReplyContext::processExpired(), Http::One::Server::processParsedRequest(), clientReplyContext::processReplyAccess(), clientReplyContext::processReplyAccessResult(), HttpStateData::processReplyBody(), HttpStateData::processSurrogateControl(), ConnStateData::proxyProtocolValidateClient(), IdleConnList::push(), Read(), MemObject::readAheadPolicyCanRead(), store_client::readBody(), Server::readSomeData(), ConnStateData::receivedFirstByte(), redirectInit(), redirectStart(), redirectStats(), FwdState::reforward(), FwdState::reforwardableStatus(), refreshCheck(), refreshCheckHTTP(), refreshIsCachable(), refreshLimits(), refreshStats(), refreshUncompiledPattern(), Mem::Report(), Kid::reportStopped(), Http::One::RequestParser::RequestTargetCharacters(), requirePathnameExists(), HttpStateData::reusableReply(), Ftp::Client::scheduleReadControlReply(), send_announce(), Comm::ConnOpener::sendAnswer(), HttpStateData::sendComplete(), Ftp::Client::sendEprt(), clientReplyContext::sendMoreData(), Ftp::Client::sendPassive(), HttpStateData::sendRequest(), ConnStateData::serveDelayedError(), Comm::TcpAcceptor::setListen(), setLogUri(), setMaxFD(), StoreEntry::setMemStatus(), Security::PeerConnector::setReadTimeout(), setSystemLimits(), testRock::setUp(), ShutdownTls(), Http::One::RequestParser::skipDelimiter(), Http::One::RequestParser::skipGarbageLines(), Http::One::Parser::skipLineTerminator(), Http::One::RequestParser::skipTrailingCrs(), Store::Disks::smpAware(), snmp_confFn(), snmp_meshPtblFn(), snmpDecodePacket(), snmpOpenPorts(), Log::Format::SquidIcap(), SquidMain(), Log::Format::SquidNative(), ssl_ask_password(), ssl_ask_password_cb(), ClientRequestContext::sslBumpAccessCheck(), Security::PeerConnector::sslCrtvdCheckForErrors(), Http::One::Server::start(), FwdState::Start(), FwdState::start(), start_announce(), ConnStateData::startPeekAndSplice(), Store::Disks::stat(), statAvgTick(), Rock::SwapDir::statfs(), statObjects(), store_session_cb(), storeDigestAddable(), storeDigestCalcCap(), storeDigestCBlockSwapOut(), storeDigestDel(), storeDigestInit(), storeDigestNoteStoreReady(), storeDigestRebuildFinish(), storeDigestRebuildStep(), storeDigestReport(), storeDigestRewriteFinish(), storeDigestRewriteResume(), storeDigestSwapOutStep(), storeDirCloseSwapLogs(), storeDirOpenSwapLogs(), storeDirSelectSwapDirLeastLoad(), storeDirSelectSwapDirRoundRobin(), storeDirWriteCleanLogs(), storeIdStart(), storeIdStats(), storeInit(), storeLogOpen(), storeLogRotate(), storeRebuildProgress(), storeRebuildStart(), storeTooManyDiskFilesOpen(), Ftp::Client::switchTimeoutToDataChannel(), ConnStateData::switchToHttps(), switchToTunnel(), Store::Disks::sync(), PeerPoolMgrsRr::syncConfig(), testRock::tearDown(), testHttp1Parser::testDripFeed(), testHttpRequestMethod::testImage(), testStoreHashIndex::testMaxSize(), testStoreController::testMaxSize(), testHttp1Parser::testParseRequestLineInvalid(), testHttp1Parser::testParseRequestLineMethods(), testHttp1Parser::testParseRequestLineStrange(), testHttp1Parser::testParseRequestLineTerminators(), testStoreHashIndex::testStats(), testStoreController::testStats(), testHttpRequestMethod::testStream(), testUfs::testUfsDefaultEngine(), testUfs::testUfsSearch(), Comm::Connection::timeLeft(), Ping::TimerStart(), Ping::TimerStop(), tunnelConnectDone(), tunnelRelayConnectRequest(), tunnelStart(), TunnelStateData::TunnelStateData(), uniqueHostname(), unlinkdInit(), unlinkdNeeded(), HttpHeader::update(), Security::ServerOptions::updateContextConfig(), Store::Disks::updateLimits(), Store::Controller::updateLimits(), ipcache_entry::updateTtl(), urlCanonicalClean(), usage(), TransientsRr::useConfig(), MemStoreRr::useConfig(), ps_state::wantsMoreDestinations(), watch_child(), wccp2AssignBuckets(), wccp2ConnectionOpen(), wccp2HandleUdp(), wccp2HereIam(), wccp2Init(), wccpConnectionOpen(), wccpHandleUdp(), wccpInit(), ConnStateData::whenClientIpKnown(), whichPeer(), Http::One::Parser::WhitespaceCharacters(), whoisStart(), WIN32_IpAddrChangeMonitorInit(), Write(), Ftp::Client::writeCommand(), writeTimedOut(), and ErrorState::~ErrorState().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors