Public Member Functions

ParentSiblingPeer Class Reference

#include <ICP.h>

Inherits Peer.

Collaboration diagram for ParentSiblingPeer:
Collaboration graph
[legend]

Public Member Functions

 ParentSiblingPeer (PeerType_t, PeerConfigData *, ICPProcessor *, bool dynamic_peer=false)
 ~ParentSiblingPeer ()
int GetProxyPort ()
int GetICPPort ()
virtual sockaddr * GetIP ()
virtual ActionSendMsg_re (Continuation *, void *, struct msghdr *, struct sockaddr const *to)
virtual ActionRecvFrom_re (Continuation *, void *, IOBufferBlock *, int, struct sockaddr *, socklen_t *)
virtual int GetRecvFD ()
virtual int GetSendFD ()
virtual int ExpectedReplies (BitMap *)
virtual int ValidSender (struct sockaddr *)
virtual void LogSendMsg (ICPMsg_t *, sockaddr const *)
virtual int ExtToIntRecvSockAddr (sockaddr const *in, sockaddr *out)
virtual int IsOnline ()
virtual ConnectionGetSendChan ()
virtual ConnectionGetRecvChan ()
PeerConfigDataGetConfig ()
ConnectionGetChan ()

Detailed Description

Definition at line 606 of file ICP.h.


Constructor & Destructor Documentation

ParentSiblingPeer::ParentSiblingPeer ( PeerType_t  t,
PeerConfigData p,
ICPProcessor icpPr,
bool  dynamic_peer = false 
)
ParentSiblingPeer::~ParentSiblingPeer (  )  [inline]

Definition at line 610 of file ICP.h.

References Peer::_state, and PEER_DYNAMIC.


Member Function Documentation

int ParentSiblingPeer::ExpectedReplies ( BitMap expected_replies_list  )  [virtual]
int ParentSiblingPeer::ExtToIntRecvSockAddr ( sockaddr const *  in,
sockaddr *  out 
) [virtual]

Implements Peer.

Definition at line 970 of file ICPConfig.cc.

References Peer::_ICPpr, ats_ip_copy(), ICPProcessor::FindPeer(), Peer::GetIP(), and Peer::GetType().

Connection* ParentSiblingPeer::GetChan (  )  [inline]

Definition at line 642 of file ICP.h.

Referenced by ICPPeerReadCont::PeerReadStateMachine().

PeerConfigData* ParentSiblingPeer::GetConfig (  )  [inline]

Definition at line 638 of file ICP.h.

int ParentSiblingPeer::GetICPPort (  ) 

Definition at line 843 of file ICPConfig.cc.

References PeerConfigData::GetICPPort().

sockaddr * ParentSiblingPeer::GetIP (  )  [virtual]

Implements Peer.

Definition at line 850 of file ICPConfig.cc.

References IpEndpoint::sa.

Referenced by ExpectedReplies(), ICPPeerReadCont::PeerReadStateMachine(), and ValidSender().

int ParentSiblingPeer::GetProxyPort (  ) 

Definition at line 837 of file ICPConfig.cc.

References PeerConfigData::GetProxyPort().

virtual Connection* ParentSiblingPeer::GetRecvChan (  )  [inline, virtual]

Implements Peer.

Definition at line 634 of file ICP.h.

int ParentSiblingPeer::GetRecvFD (  )  [virtual]

Implements Peer.

Definition at line 896 of file ICPConfig.cc.

References Connection::fd.

virtual Connection* ParentSiblingPeer::GetSendChan (  )  [inline, virtual]

Implements Peer.

Definition at line 630 of file ICP.h.

int ParentSiblingPeer::GetSendFD (  )  [virtual]

Implements Peer.

Definition at line 902 of file ICPConfig.cc.

References Connection::fd.

virtual int ParentSiblingPeer::IsOnline (  )  [inline, virtual]

Implements Peer.

Definition at line 626 of file ICP.h.

void ParentSiblingPeer::LogSendMsg ( ICPMsg_t m,
sockaddr const *   
) [virtual]
Action * ParentSiblingPeer::RecvFrom_re ( Continuation cont,
void *  token,
IOBufferBlock bufblock,
int  size,
struct sockaddr *  from,
socklen_t *  fromlen 
) [virtual]
virtual Action* ParentSiblingPeer::SendMsg_re ( Continuation ,
void *  ,
struct msghdr *  ,
struct sockaddr const *  to 
) [virtual]

Implements Peer.

int ParentSiblingPeer::ValidSender ( struct sockaddr *  fr  )  [virtual]

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