#include <ICP.h>
Public Types | |
enum | { HOSTNAME_SIZE = 256 } |
enum | { CTYPE_NONE = 0, CTYPE_PARENT = 1, CTYPE_SIBLING = 2, CTYPE_LOCAL = 3 } |
Public Member Functions | |
PeerConfigData () | |
PeerConfigData (int ctype, IpAddr const &ip_addr, int proxy_port, int icp_port) | |
~PeerConfigData () | |
bool | operator== (PeerConfigData &) |
const char * | GetHostname () |
int | GetCType () |
IpAddr const & | GetIPAddr () |
int | GetProxyPort () |
int | GetICPPort () |
int | MultiCastMember () |
IpAddr const & | GetMultiCastIPAddr () |
int | GetMultiCastTTL () |
Static Public Member Functions | |
static PeerType_t | CTypeToPeerType_t (int) |
static int | GetHostIPByName (char *, IpAddr &) |
Friends | |
class | ICPConfiguration |
class | ICPProcessor |
Definition at line 311 of file ICP.h.
anonymous enum |
PeerConfigData::PeerConfigData | ( | ) |
Definition at line 283 of file ICPConfig.cc.
References HOSTNAME_SIZE.
PeerConfigData::PeerConfigData | ( | int | ctype, | |
IpAddr const & | ip_addr, | |||
int | proxy_port, | |||
int | icp_port | |||
) | [inline] |
PeerType_t PeerConfigData::CTypeToPeerType_t | ( | int | ctype | ) | [static] |
Definition at line 288 of file ICPConfig.cc.
References CTYPE_LOCAL, CTYPE_PARENT, and CTYPE_SIBLING.
int PeerConfigData::GetHostIPByName | ( | char * | hostname, | |
IpAddr & | rip | |||
) | [static] |
Definition at line 306 of file ICPConfig.cc.
References IpAddr::assign(), ats_ip_addr_cmp(), and ats_is_ip().
Referenced by ICPConfiguration::UpdatePeerConfig().
int PeerConfigData::GetICPPort | ( | ) | [inline] |
Definition at line 345 of file ICP.h.
Referenced by ParentSiblingPeer::GetICPPort(), and ParentSiblingPeer::ParentSiblingPeer().
IpAddr const& PeerConfigData::GetIPAddr | ( | ) | [inline] |
Definition at line 337 of file ICP.h.
Referenced by ParentSiblingPeer::ParentSiblingPeer().
int PeerConfigData::GetProxyPort | ( | ) | [inline] |
Definition at line 341 of file ICP.h.
Referenced by ParentSiblingPeer::GetProxyPort().
bool PeerConfigData::operator== | ( | PeerConfigData & | PeerData | ) |
Definition at line 335 of file ICPConfig.cc.
References HOSTNAME_SIZE.
friend class ICPConfiguration [friend] |
friend class ICPProcessor [friend] |