A brief file description. More...
#include "Main.h"
#include "ProxyConfig.h"
#include "ControlBase.h"
#include "ControlMatcher.h"
#include "ink_apidefs.h"
#include "P_RecProcess.h"
#include "libts.h"
Go to the source code of this file.
Data Structures | |
struct | ParentResult |
struct | ParentConfigParams |
struct | ParentConfig |
struct | pRecord |
class | ParentRecord |
struct | SocksServerConfig |
Defines | |
#define | MAX_PARENTS 64 |
Typedefs | |
typedef ControlMatcher < ParentRecord, ParentResult > | P_table |
Enumerations | |
enum | ParentResultType { PARENT_UNDEFINED, PARENT_DIRECT, PARENT_SPECIFIED, PARENT_AGENT, PARENT_FAIL } |
enum | ParentRR_t { P_NO_ROUND_ROBIN = 0, P_STRICT_ROUND_ROBIN, P_HASH_ROUND_ROBIN, P_CONSISTENT_HASH } |
Functions | |
ParentRecord * | createDefaultParent (char *val) |
void | reloadDefaultParent (char *val) |
void | reloadParentFile () |
int | parentSelection_CB (const char *name, RecDataT data_type, RecData data, void *cookie) |
void | show_result (ParentResult *aParentResult) |
void | br (HttpRequestData *h, const char *os_hostname, sockaddr const *dest_ip=NULL) |
int | verify (ParentResult *r, ParentResultType e, const char *h, int p) |
A brief file description.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file ParentSelection.h.
#define MAX_PARENTS 64 |
Definition at line 45 of file ParentSelection.h.
typedef ControlMatcher<ParentRecord, ParentResult> P_table |
Definition at line 59 of file ParentSelection.h.
enum ParentResultType |
Definition at line 53 of file ParentSelection.h.
enum ParentRR_t |
Definition at line 176 of file ParentSelection.h.
void br | ( | HttpRequestData * | h, | |
const char * | os_hostname, | |||
sockaddr const * | dest_ip = NULL | |||
) |
Definition at line 1352 of file ParentSelection.cc.
References HttpRequestData::api_info, ats_ip_copy(), ats_strdup, HTTPHdr::create(), HttpRequestData::dest_ip, HttpRequestData::hdr, HttpRequestData::hostname_str, HTTP_TYPE_REQUEST, HttpRequestData::incoming_port, IpEndpoint::sa, HttpRequestData::src_ip, and HttpRequestData::xact_start.
Referenced by PARENTSELECTION().
ParentRecord* createDefaultParent | ( | char * | val | ) |
Definition at line 969 of file ParentSelection.cc.
References ParentRecord::DefaultInit().
Referenced by SocksServerConfig::reconfigure(), and ParentConfig::reconfigure().
void reloadDefaultParent | ( | char * | val | ) |
void reloadParentFile | ( | ) |
void show_result | ( | ParentResult * | aParentResult | ) |
Definition at line 1367 of file ParentSelection.cc.
References ParentResult::hostname, PARENT_DIRECT, PARENT_FAIL, PARENT_SPECIFIED, PARENT_UNDEFINED, ParentResult::port, and ParentResult::r.
Referenced by verify().
int verify | ( | ParentResult * | r, | |
ParentResultType | e, | |||
const char * | h, | |||
int | p | |||
) |
Definition at line 1343 of file ParentSelection.cc.
References ParentResult::hostname, is_debug_tag_set, ParentResult::port, ParentResult::r, and show_result().
Referenced by PARENTSELECTION().