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

DCDT_Channel Class Reference

Virtual class that describes a generic communication channel. More...

#include <DCDT_Channel.h>

Inheritance diagram for DCDT_Channel:

DCDT_Channel_IP DCDT_Channel_Serial DCDT_InnerChannel List of all members.

Public Member Functions

 DCDT_Channel (int AgoraID)
virtual void Open (int link_status=0)=0
virtual void Reopen (int link_status)=0
virtual void Prepare (CommData *local, CommData *remote)=0
 Prepare the channel's data structure before opening the link.
virtual void ChooseChannel (int channel)=0
virtual void WaitConn ()=0
virtual void StartConn ()=0
virtual void Send (const DCDT_Msg *msg)=0
virtual void SendNotify ()=0
virtual void SendAnswer (CommData *to, CommData *local)=0
virtual DCDT_MsgReceive ()=0
virtual void ReceiveHS (HSMsgHeader *&header, CommData *&remote)=0
virtual void Dispose ()=0
virtual void Close ()=0
virtual void KeepAlive ()=0
virtual CommDataGetStartingCD ()=0
virtual unsigned int ReadStartingProfile ()=0
virtual CommDataGetCommData ()=0
virtual void SetTimers ()=0
virtual void SetLostTimer (int usec)=0
virtual void LostTimerOn ()=0
virtual void LostTimerOff ()=0
virtual void SetConnTimer (int usec)=0
virtual void ConnTimerOn ()=0
virtual void ConnTimerOff ()=0
virtual void SetSendTimer (int usec)=0
virtual void SendTimerOn ()=0
virtual void SendTimerOff ()=0
virtual void UnblockSend ()=0
virtual void SetReceiveTimer (int usec)=0
virtual void ReceiveTimerOn ()=0
virtual void ReceiveTimerOff ()=0
virtual void UnblockReceive ()=0
virtual void Restart (int link_status)=0
virtual void Stop ()=0

Protected Attributes

HSMsgHeader notify
HSMsgHeader answer
HSMsgHeader recvd
int channel_type

Detailed Description

Virtual class that describes a generic communication channel.

Definition at line 34 of file DCDT_Channel.h.


Constructor & Destructor Documentation

DCDT_Channel::DCDT_Channel int  AgoraID  )  [inline]
 

Definition at line 36 of file DCDT_Channel.h.


Member Function Documentation

virtual void DCDT_Channel::ChooseChannel int  channel  )  [pure virtual]
 

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

Referenced by DCDT_Finder::DoYourJob().

virtual void DCDT_Channel::Close  )  [pure virtual]
 

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

Referenced by DCDT_LinkRx::Close().

virtual void DCDT_Channel::ConnTimerOff  )  [pure virtual]
 

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

virtual void DCDT_Channel::ConnTimerOn  )  [pure virtual]
 

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

virtual void DCDT_Channel::Dispose  )  [pure virtual]
 

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

Referenced by DCDT_LinkRx::DoYourJob().

virtual CommData* DCDT_Channel::GetCommData  )  [pure virtual]
 

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

Referenced by DCDT_LinkRx::GetCommData(), DCDT_LinkRx::Prepare(), and DCDT_LinkRx::Restart().

virtual CommData* DCDT_Channel::GetStartingCD  )  [pure virtual]
 

Returns a heap memory area of which is no more responsible

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

Referenced by DCDT_Finder::DoYourJob().

virtual void DCDT_Channel::KeepAlive  )  [pure virtual]
 

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

Referenced by DCDT_LinkTx::DoYourJob().

virtual void DCDT_Channel::LostTimerOff  )  [pure virtual]
 

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

virtual void DCDT_Channel::LostTimerOn  )  [pure virtual]
 

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

virtual void DCDT_Channel::Open int  link_status = 0  )  [pure virtual]
 

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

Referenced by DCDT_LinkRx::Prepare().

virtual void DCDT_Channel::Prepare CommData local,
CommData remote
[pure virtual]
 

Prepare the channel's data structure before opening the link.

This function is responsible for the allocated area of the two classes passed as parameters

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

Referenced by DCDT_LinkRx::Prepare(), and DCDT_LinkRx::Restart().

virtual unsigned int DCDT_Channel::ReadStartingProfile  )  [pure virtual]
 

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

Referenced by DCDT_Finder::DoYourJob().

virtual DCDT_Msg* DCDT_Channel::Receive  )  [pure virtual]
 

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

Referenced by DCDT_LinkRx::DoYourJob().

virtual void DCDT_Channel::ReceiveHS HSMsgHeader *&  header,
CommData *&  remote
[pure virtual]
 

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

Referenced by DCDT_Finder::DoYourJob().

virtual void DCDT_Channel::ReceiveTimerOff  )  [pure virtual]
 

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

Referenced by DCDT_LinkRx::DoYourJob().

virtual void DCDT_Channel::ReceiveTimerOn  )  [pure virtual]
 

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

virtual void DCDT_Channel::Reopen int  link_status  )  [pure virtual]
 

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

Referenced by DCDT_LinkRx::Restart().

virtual void DCDT_Channel::Restart int  link_status  )  [pure virtual]
 

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

virtual void DCDT_Channel::Send const DCDT_Msg msg  )  [pure virtual]
 

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

Referenced by DCDT_LinkTx::DoYourJob().

virtual void DCDT_Channel::SendAnswer CommData to,
CommData local
[pure virtual]
 

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

Referenced by DCDT_Finder::DoYourJob().

virtual void DCDT_Channel::SendNotify  )  [pure virtual]
 

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

Referenced by DCDT_Finder::DoYourJob(), and DCDT_Finder::Init().

virtual void DCDT_Channel::SendTimerOff  )  [pure virtual]
 

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

virtual void DCDT_Channel::SendTimerOn  )  [pure virtual]
 

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

virtual void DCDT_Channel::SetConnTimer int  usec  )  [pure virtual]
 

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

virtual void DCDT_Channel::SetLostTimer int  usec  )  [pure virtual]
 

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

virtual void DCDT_Channel::SetReceiveTimer int  usec  )  [pure virtual]
 

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

virtual void DCDT_Channel::SetSendTimer int  usec  )  [pure virtual]
 

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

virtual void DCDT_Channel::SetTimers  )  [pure virtual]
 

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

Referenced by DCDT_LinkRx::DoYourJob(), DCDT_LinkRx::Prepare(), and DCDT_LinkRx::Restart().

virtual void DCDT_Channel::StartConn  )  [pure virtual]
 

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

Referenced by DCDT_LinkRx::DoYourJob().

virtual void DCDT_Channel::Stop  )  [pure virtual]
 

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

Referenced by DCDT_LinkRx::DoYourJob().

virtual void DCDT_Channel::UnblockReceive  )  [pure virtual]
 

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

virtual void DCDT_Channel::UnblockSend  )  [pure virtual]
 

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

virtual void DCDT_Channel::WaitConn  )  [pure virtual]
 

Implemented in DCDT_Channel_IP, DCDT_Channel_Serial, and DCDT_InnerChannel.

Referenced by DCDT_LinkRx::DoYourJob().


Member Data Documentation

HSMsgHeader DCDT_Channel::answer [protected]
 

Definition at line 96 of file DCDT_Channel.h.

int DCDT_Channel::channel_type [protected]
 

Definition at line 97 of file DCDT_Channel.h.

HSMsgHeader DCDT_Channel::notify [protected]
 

Definition at line 96 of file DCDT_Channel.h.

HSMsgHeader DCDT_Channel::recvd [protected]
 

Definition at line 96 of file DCDT_Channel.h.


The documentation for this class was generated from the following file:
Generated on Sun Jun 19 10:35:51 2005 for dcdt by  doxygen 1.3.9.1