Data Structures | Defines | Typedefs | Enumerations | Functions

ParentSelection.h File Reference

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"
Include dependency graph for ParentSelection.h:
This graph shows which files directly or indirectly include this file:

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

ParentRecordcreateDefaultParent (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)

Detailed Description

A brief file description.

License

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 Documentation

#define MAX_PARENTS   64

Definition at line 45 of file ParentSelection.h.


Typedef Documentation

Definition at line 59 of file ParentSelection.h.


Enumeration Type Documentation

Enumerator:
PARENT_UNDEFINED 
PARENT_DIRECT 
PARENT_SPECIFIED 
PARENT_AGENT 
PARENT_FAIL 

Definition at line 53 of file ParentSelection.h.

enum ParentRR_t
Enumerator:
P_NO_ROUND_ROBIN 
P_STRICT_ROUND_ROBIN 
P_HASH_ROUND_ROBIN 
P_CONSISTENT_HASH 

Definition at line 176 of file ParentSelection.h.


Function Documentation

void br ( HttpRequestData h,
const char *  os_hostname,
sockaddr const *  dest_ip = NULL 
)
ParentRecord* createDefaultParent ( char *  val  ) 
int parentSelection_CB ( const char *  name,
RecDataT  data_type,
RecData  data,
void *  cookie 
)
void reloadDefaultParent ( char *  val  ) 
void reloadParentFile (  ) 
void show_result ( ParentResult aParentResult  ) 
int verify ( ParentResult r,
ParentResultType  e,
const char *  h,
int  p 
)