Main Page | Namespace List | Class Hierarchy | Compound List | File List | Compound Members | File Members

DCDT_Link Class Reference

#include <DCDT_Link.h>

Inheritance diagram for DCDT_Link:

DCDT_Member List of all members.

Public Member Functions

 DCDT_Link (DCDT_Agora *agora, int id, int r_id)
 ~DCDT_Link ()
CommDataPrepare (int stat, CommData *l_cd, CommData *r_cd)
void Init ()
void Close ()
void DoYourJob (int par=0)
void Subscribe (unsigned int *mask)
CommDataGetCommData ()
CommDataRestart (int restart_status, CommData *l_cd, CommData *r_cd)
void ResetToConnecting (CommData *l_cd, CommData *r_cd)
void ChangeStatus (int newstat)
int ReadStatus ()
int ReadRemoteID ()
void SetCDs (CommData *l_cd, CommData *r_cd)

Private Attributes

int linkID
int remoteID
int creation_status
int status
int restart_counter
int lost_counter
DCDT_Channelchannel
unsigned int mymask [NUMINT_MSGTYPE]
CommDatalocalCD
CommDataremoteCD
DCDT_Msgmsgsub
DCDT_Msgmsgrcv
unsigned int * subs_mask_rcv
unsigned int subs_mask [NUMINT_MSGTYPE]
int i

Constructor & Destructor Documentation

DCDT_Link::DCDT_Link DCDT_Agora agora,
int  id,
int  r_id
 

Definition at line 31 of file DCDT_Link.cpp.

References DCDT_Member::CreateMsg(), i, linkID, localCD, msgrcv, msgsub, MT_SUBSUPD, mymask, NUMINT_MSGTYPE, remoteCD, remoteID, restart_counter, DCDT_Msg::SetDeliveryWarranty(), DCDT_Msg::SetPayload(), status, subs_mask, and TCP_WARRANTY.

DCDT_Link::~DCDT_Link  )  [inline]
 

Definition at line 37 of file DCDT_Link.h.


Member Function Documentation

void DCDT_Link::ChangeStatus int  newstat  ) 
 

Definition at line 228 of file DCDT_Link.cpp.

References status.

void DCDT_Link::Close  )  [virtual]
 

Reimplemented from DCDT_Member.

Definition at line 53 of file DCDT_Link.cpp.

References channel, and DCDT_Channel::Close().

Referenced by DoYourJob().

void DCDT_Link::DoYourJob int  par = 0  )  [virtual]
 

Implements DCDT_Member.

Definition at line 74 of file DCDT_Link.cpp.

References channel, Close(), DCDT_Finder::CloseLink(), DBG_COMM_PRINTF, Delay(), DCDT_Channel::Dispose(), DCDT_Msg::GetPayload(), DCDT_Channel::KeepAlive(), L_CONNECTING, L_LOST, L_RESETTOCONN, L_WAITING, L_WORKING, LINK_LOST_NUM, LINK_LOST_TIMER, linkID, localCD, lost_counter, msgrcv, msgsub, MT_KEEPALIVE, MT_SUBSUPD, DCDT_Member::myFinder, DCDT_Member::myPostOffice, DCDT_Member::ReadID(), DCDT_PostOffice::ReadSubscribedMsgMask(), DCDT_Msg::ReadType(), DCDT_Channel::Receive(), DCDT_Member::ReceiveMsg(), DCDT_Channel::ReceiveTimerOn(), remoteCD, DCDT_Member::RemoveCurrMsg(), Restart(), DCDT_Channel::Send(), DCDT_Channel::SetTimers(), DCDT_Member::ShareMsg(), DCDT_Channel::StartConn(), status, DCDT_Channel::Stop(), subs_mask, subs_mask_rcv, Subscribe(), DCDT_Channel::UnblockReceive(), DCDT_Member::UnSubscribeAll(), DCDT_PostOffice::UpdateSubs(), and DCDT_Channel::WaitConn().

CommData * DCDT_Link::GetCommData  ) 
 

Definition at line 205 of file DCDT_Link.cpp.

References channel, and DCDT_Channel::GetCommData().

void DCDT_Link::Init  )  [virtual]
 

Reimplemented from DCDT_Member.

Definition at line 48 of file DCDT_Link.cpp.

CommData * DCDT_Link::Prepare int  stat,
CommData l_cd,
CommData r_cd
 

Definition at line 64 of file DCDT_Link.cpp.

References channel, CommData::CreateChannel(), creation_status, DCDT_Channel::GetCommData(), DCDT_Member::myAgoraID, DCDT_Channel::Open(), DCDT_Channel::Prepare(), DCDT_Channel::SetTimers(), and status.

int DCDT_Link::ReadRemoteID  )  [inline]
 

Definition at line 49 of file DCDT_Link.h.

References remoteID.

int DCDT_Link::ReadStatus  )  [inline]
 

Definition at line 48 of file DCDT_Link.h.

References status.

void DCDT_Link::ResetToConnecting CommData l_cd,
CommData r_cd
 

Definition at line 221 of file DCDT_Link.cpp.

References L_RESETTOCONN, SetCDs(), and status.

CommData * DCDT_Link::Restart int  restart_status,
CommData l_cd,
CommData r_cd
 

Definition at line 211 of file DCDT_Link.cpp.

References channel, creation_status, DCDT_Channel::GetCommData(), linkID, DCDT_Channel::Prepare(), DCDT_Channel::Reopen(), DCDT_Channel::SetTimers(), and status.

Referenced by DoYourJob().

void DCDT_Link::SetCDs CommData l_cd,
CommData r_cd
 

Definition at line 233 of file DCDT_Link.cpp.

References localCD, and remoteCD.

Referenced by ResetToConnecting().

void DCDT_Link::Subscribe unsigned int *  mask  ) 
 

Definition at line 189 of file DCDT_Link.cpp.

References DBG_COMM_PRINTF, i, NUMINT_MSGTYPE, and DCDT_Member::SubscribeMsgType().

Referenced by DoYourJob().


Member Data Documentation

DCDT_Channel* DCDT_Link::channel [private]
 

Definition at line 55 of file DCDT_Link.h.

Referenced by Close(), DoYourJob(), GetCommData(), Prepare(), and Restart().

int DCDT_Link::creation_status [private]
 

Definition at line 54 of file DCDT_Link.h.

Referenced by Prepare(), and Restart().

int DCDT_Link::i [private]
 

Definition at line 60 of file DCDT_Link.h.

Referenced by DCDT_Link(), and Subscribe().

int DCDT_Link::linkID [private]
 

Definition at line 53 of file DCDT_Link.h.

Referenced by DCDT_Link(), DoYourJob(), and Restart().

CommData* DCDT_Link::localCD [private]
 

Definition at line 57 of file DCDT_Link.h.

Referenced by DCDT_Link(), DoYourJob(), and SetCDs().

int DCDT_Link::lost_counter [private]
 

Definition at line 54 of file DCDT_Link.h.

Referenced by DoYourJob().

DCDT_Msg * DCDT_Link::msgrcv [private]
 

Definition at line 58 of file DCDT_Link.h.

Referenced by DCDT_Link(), and DoYourJob().

DCDT_Msg* DCDT_Link::msgsub [private]
 

Definition at line 58 of file DCDT_Link.h.

Referenced by DCDT_Link(), and DoYourJob().

unsigned int DCDT_Link::mymask[NUMINT_MSGTYPE] [private]
 

Definition at line 56 of file DCDT_Link.h.

Referenced by DCDT_Link().

CommData * DCDT_Link::remoteCD [private]
 

Definition at line 57 of file DCDT_Link.h.

Referenced by DCDT_Link(), DoYourJob(), and SetCDs().

int DCDT_Link::remoteID [private]
 

Definition at line 53 of file DCDT_Link.h.

Referenced by DCDT_Link(), and ReadRemoteID().

int DCDT_Link::restart_counter [private]
 

Definition at line 54 of file DCDT_Link.h.

Referenced by DCDT_Link().

int DCDT_Link::status [private]
 

Definition at line 54 of file DCDT_Link.h.

Referenced by ChangeStatus(), DCDT_Link(), DoYourJob(), Prepare(), ReadStatus(), ResetToConnecting(), and Restart().

unsigned int DCDT_Link::subs_mask[NUMINT_MSGTYPE] [private]
 

Definition at line 59 of file DCDT_Link.h.

Referenced by DCDT_Link(), and DoYourJob().

unsigned int* DCDT_Link::subs_mask_rcv [private]
 

Definition at line 59 of file DCDT_Link.h.

Referenced by DoYourJob().


The documentation for this class was generated from the following files:
Generated on Tue Aug 12 17:55:42 2003 for dcdt by doxygen 1.3.2