Public Types | Public Member Functions | Friends

ICPProcessor Class Reference

#include <ICP.h>

Collaboration diagram for ICPProcessor:
Collaboration graph
[legend]

Public Types

enum  ReconfigState_t { RC_RECONFIG, RC_ENABLE_ICP, RC_DONE }

Public Member Functions

 ICPProcessor ()
 ~ICPProcessor ()
void start ()
ActionICPQuery (Continuation *, URL *)
ReconfigState_t ReconfigureStateMachine (ReconfigState_t, int, int)
PeerFindPeer (IpAddr const &ip, uint16_t port=0)
PeerFindPeer (IpEndpoint const &ip)
PeerFindPeer (sockaddr const *ip)
PeerGetLocalPeer ()
PeerIdToPeer (int id)
ICPConfigurationGetConfig ()
int GetFreePeers ()
int GetFreeSendPeers ()
int GetFreeRecvPeers ()

Friends

class ICPHandlerCont
class ICPPeerReadCont
class ICPRequestCont

Detailed Description

Definition at line 748 of file ICP.h.


Member Enumeration Documentation

Enumerator:
RC_RECONFIG 
RC_ENABLE_ICP 
RC_DONE 

Definition at line 763 of file ICP.h.


Constructor & Destructor Documentation

ICPProcessor::ICPProcessor (  ) 

Definition at line 1778 of file ICP.cc.

ICPProcessor::~ICPProcessor (  ) 

Member Function Documentation

Peer * ICPProcessor::FindPeer ( IpAddr const &  ip,
uint16_t  port = 0 
)
Peer* ICPProcessor::FindPeer ( IpEndpoint const &  ip  )  [inline]

Definition at line 772 of file ICP.h.

References ats_ip_port_host_order(), and FindPeer().

Peer* ICPProcessor::FindPeer ( sockaddr const *  ip  )  [inline]

Definition at line 775 of file ICP.h.

References ats_ip_port_host_order(), and FindPeer().

ICPConfiguration* ICPProcessor::GetConfig (  )  [inline]
int ICPProcessor::GetFreePeers (  )  [inline]

Definition at line 792 of file ICP.h.

Referenced by ICPPeerReadCont::PeerReadStateMachine().

int ICPProcessor::GetFreeRecvPeers (  )  [inline]

Definition at line 800 of file ICP.h.

int ICPProcessor::GetFreeSendPeers (  )  [inline]

Definition at line 796 of file ICP.h.

Referenced by ICPPeerReadCont::PeerReadStateMachine().

Peer* ICPProcessor::GetLocalPeer (  )  [inline]

Definition at line 779 of file ICP.h.

Referenced by ParentSiblingPeer::RecvFrom_re().

Action * ICPProcessor::ICPQuery ( Continuation c,
URL url 
)
Peer* ICPProcessor::IdToPeer ( int  id  )  [inline]

Definition at line 783 of file ICP.h.

Referenced by ICPPeerReadCont::PeerReadStateMachine().

ICPProcessor::ReconfigState_t ICPProcessor::ReconfigureStateMachine ( ReconfigState_t  s,
int  gconfig_changed,
int  pconfig_changed 
)
void ICPProcessor::start (  ) 

Friends And Related Function Documentation

friend class ICPHandlerCont [friend]

Definition at line 750 of file ICP.h.

Referenced by start().

friend class ICPPeerReadCont [friend]

Definition at line 751 of file ICP.h.

friend class ICPRequestCont [friend]

Definition at line 752 of file ICP.h.

Referenced by ICPQuery().


The documentation for this class was generated from the following files: