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

DCDT_InnerChannel Class Reference

Channel used for local communications. More...

#include <DCDT_InnerChannel.h>

Inheritance diagram for DCDT_InnerChannel:

DCDT_Channel List of all members.

Public Member Functions

 DCDT_InnerChannel (int AgoraID)
virtual ~DCDT_InnerChannel ()
void Open (int link_status=0)
void Reopen (int link_status)
void StartingPrepare (InnerCommData *cd, char *to)
void Prepare (CommData *local, CommData *remote)
 Prepare the channel's data structure before opening the link.
void ChooseChannel (int channel)
void WaitConn ()
void StartConn ()
void Send (const DCDT_Msg *msg)
 Send msg to the connected socket.
void SendNotify ()
 Send HS_NOTIFY to the socket identified by inner_name.
void SendAnswer (CommData *to, CommData *local)
 Send HS_ANSWER with a payload containing our socket identifier.
DCDT_MsgReceive ()
void ReceiveHS (HSMsgHeader *&header, CommData *&remote)
void Dispose ()
void Close ()
void KeepAlive ()
CommDataGetCommData ()
CommDataGetStartingCD ()
unsigned int ReadStartingProfile ()
void SetTimers ()
void SetLostTimer (int usec)
void LostTimerOn ()
void LostTimerOff ()
void SetConnTimer (int usec)
void ConnTimerOn ()
void ConnTimerOff ()
void SetSendTimer (int usec)
void SendTimerOn ()
void SendTimerOff ()
void UnblockSend ()
void SetReceiveTimer (int usec)
void ReceiveTimerOn ()
void ReceiveTimerOff ()
void UnblockReceive ()
void Restart (int link_status)
void Stop ()

Private Attributes

ProfileType profile
InnerSocketsock
InnerCommDatalocalCD
InnerCommDataremoteCD
char * inner_name
 Destination file name.

Detailed Description

Channel used for local communications.

Definition at line 40 of file DCDT_InnerChannel.h.


Constructor & Destructor Documentation

DCDT_InnerChannel::DCDT_InnerChannel int  AgoraID  )  [inline]
 

Definition at line 42 of file DCDT_InnerChannel.h.

References _HSMsgHeader::AgoraID, _HSMsgHeader::channel, inner_name, localCD, _HSMsgHeader::payload_len, remoteCD, and sock.

DCDT_InnerChannel::~DCDT_InnerChannel  )  [inline, virtual]
 

Definition at line 136 of file DCDT_InnerChannel.h.


Member Function Documentation

void DCDT_InnerChannel::ChooseChannel int  channel  )  [inline, virtual]
 

Implements DCDT_Channel.

Definition at line 58 of file DCDT_InnerChannel.h.

void DCDT_InnerChannel::Close  )  [inline, virtual]
 

Implements DCDT_Channel.

Definition at line 295 of file DCDT_InnerChannel.h.

References InnerSocket::Close(), and sock.

Referenced by DCDT_InnerLinkManager::Init(), and DCDT_InnerLinkManager::LookForExistingAgora().

void DCDT_InnerChannel::ConnTimerOff  )  [inline, virtual]
 

Implements DCDT_Channel.

Definition at line 337 of file DCDT_InnerChannel.h.

References InnerSocket::ConnTimerOff(), and sock.

void DCDT_InnerChannel::ConnTimerOn  )  [inline, virtual]
 

Implements DCDT_Channel.

Definition at line 332 of file DCDT_InnerChannel.h.

References InnerSocket::ConnTimerOn(), and sock.

void DCDT_InnerChannel::Dispose  )  [inline, virtual]
 

Implements DCDT_Channel.

Definition at line 278 of file DCDT_InnerChannel.h.

References localCD, InnerCommData::name, and remoteCD.

CommData* DCDT_InnerChannel::GetCommData  )  [inline, virtual]
 

Implements DCDT_Channel.

Definition at line 69 of file DCDT_InnerChannel.h.

CommData* DCDT_InnerChannel::GetStartingCD  )  [inline, virtual]
 

Returns a heap memory area of which is no more responsible

Implements DCDT_Channel.

Definition at line 70 of file DCDT_InnerChannel.h.

void DCDT_InnerChannel::KeepAlive  )  [inline, virtual]
 

Implements DCDT_Channel.

Definition at line 68 of file DCDT_InnerChannel.h.

void DCDT_InnerChannel::LostTimerOff  )  [inline, virtual]
 

Implements DCDT_Channel.

Definition at line 322 of file DCDT_InnerChannel.h.

References InnerSocket::LostTimerOff(), and sock.

void DCDT_InnerChannel::LostTimerOn  )  [inline, virtual]
 

Implements DCDT_Channel.

Definition at line 317 of file DCDT_InnerChannel.h.

References InnerSocket::LostTimerOn(), and sock.

void DCDT_InnerChannel::Open int  link_status = 0  )  [inline, virtual]
 

Implements DCDT_Channel.

Definition at line 192 of file DCDT_InnerChannel.h.

References InnerSocket::Bind(), localCD, InnerCommData::name, InnerSocket::Open(), and sock.

Referenced by DCDT_InnerLinkManager::Init(), DCDT_InnerLinkManager::LookForExistingAgora(), and Restart().

void DCDT_InnerChannel::Prepare CommData local,
CommData remote
[inline, 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

Implements DCDT_Channel.

Definition at line 151 of file DCDT_InnerChannel.h.

References DCDT_TRC_COMM, localCD, InnerCommData::name, remoteCD, and TRC_PRINT.

Referenced by DCDT_InnerLinkManager::Init().

unsigned int DCDT_InnerChannel::ReadStartingProfile  )  [inline, virtual]
 

Implements DCDT_Channel.

Definition at line 71 of file DCDT_InnerChannel.h.

DCDT_Msg * DCDT_InnerChannel::Receive  )  [inline, virtual]
 

Implements DCDT_Channel.

Definition at line 228 of file DCDT_InnerChannel.h.

References InnerSocket::Receive(), and sock.

void DCDT_InnerChannel::ReceiveHS HSMsgHeader *&  header,
CommData *&  remote
[inline, virtual]
 

Implements DCDT_Channel.

Definition at line 233 of file DCDT_InnerChannel.h.

References HSMsgHeader, InnerSocket::ReceiveHS(), and sock.

Referenced by DCDT_InnerLinkManager::DoYourJob(), and DCDT_InnerLinkManager::LookForExistingAgora().

void DCDT_InnerChannel::ReceiveTimerOff  )  [inline, virtual]
 

Implements DCDT_Channel.

Definition at line 372 of file DCDT_InnerChannel.h.

References InnerSocket::ReceiveTimerOff(), and sock.

Referenced by DCDT_InnerLinkManager::Init().

void DCDT_InnerChannel::ReceiveTimerOn  )  [inline, virtual]
 

Implements DCDT_Channel.

Definition at line 367 of file DCDT_InnerChannel.h.

References InnerSocket::ReceiveTimerOn(), and sock.

Referenced by DCDT_InnerLinkManager::LookForExistingAgora().

void DCDT_InnerChannel::Reopen int  link_status  )  [inline, virtual]
 

Implements DCDT_Channel.

Definition at line 55 of file DCDT_InnerChannel.h.

void DCDT_InnerChannel::Restart int  link_status  )  [inline, virtual]
 

Implements DCDT_Channel.

Definition at line 382 of file DCDT_InnerChannel.h.

References Open().

void DCDT_InnerChannel::Send const DCDT_Msg msg  )  [inline, virtual]
 

Send msg to the connected socket.

Implements DCDT_Channel.

Definition at line 242 of file DCDT_InnerChannel.h.

References InnerSocket::Send(), and sock.

void DCDT_InnerChannel::SendAnswer CommData to,
CommData local
[inline, virtual]
 

Send HS_ANSWER with a payload containing our socket identifier.

Implements DCDT_Channel.

Definition at line 260 of file DCDT_InnerChannel.h.

References _HSMsgHeader::AgoraID, DCDT_TRC_COMM, InnerSocket::SendHS(), sock, and TRC_PRINT.

Referenced by DCDT_InnerLinkManager::DoYourJob().

void DCDT_InnerChannel::SendNotify  )  [inline, virtual]
 

Send HS_NOTIFY to the socket identified by inner_name.

The payload contains the informations needed to talk with us, in this case what we need is only the filename associated with our socket.

Implements DCDT_Channel.

Definition at line 251 of file DCDT_InnerChannel.h.

References _HSMsgHeader::AgoraID, DCDT_TRC_COMM, inner_name, localCD, InnerCommData::name, InnerSocket::SendHS(), sock, and TRC_PRINT.

Referenced by DCDT_InnerLinkManager::LookForExistingAgora().

void DCDT_InnerChannel::SendTimerOff  )  [inline, virtual]
 

Implements DCDT_Channel.

Definition at line 352 of file DCDT_InnerChannel.h.

References InnerSocket::SendTimerOff(), and sock.

void DCDT_InnerChannel::SendTimerOn  )  [inline, virtual]
 

Implements DCDT_Channel.

Definition at line 347 of file DCDT_InnerChannel.h.

References InnerSocket::SendTimerOn(), and sock.

void DCDT_InnerChannel::SetConnTimer int  usec  )  [inline, virtual]
 

Implements DCDT_Channel.

Definition at line 327 of file DCDT_InnerChannel.h.

References InnerSocket::SetConnTimer(), and sock.

void DCDT_InnerChannel::SetLostTimer int  usec  )  [inline, virtual]
 

Implements DCDT_Channel.

Definition at line 312 of file DCDT_InnerChannel.h.

References InnerSocket::SetLostTimer(), and sock.

void DCDT_InnerChannel::SetReceiveTimer int  usec  )  [inline, virtual]
 

Implements DCDT_Channel.

Definition at line 362 of file DCDT_InnerChannel.h.

References InnerSocket::SetReceiveTimer(), and sock.

Referenced by DCDT_InnerLinkManager::LookForExistingAgora().

void DCDT_InnerChannel::SetSendTimer int  usec  )  [inline, virtual]
 

Implements DCDT_Channel.

Definition at line 342 of file DCDT_InnerChannel.h.

References InnerSocket::SetSendTimer(), and sock.

void DCDT_InnerChannel::SetTimers  )  [inline, virtual]
 

Implements DCDT_Channel.

Definition at line 300 of file DCDT_InnerChannel.h.

References CONN_TIMER_VAL, InnerSocket::ConnTimerOn(), LOST_TIMER_VAL, InnerSocket::LostTimerOn(), InnerSocket::ReceiveTimerOn(), RECV_TIMER_VAL, SEND_TIMER_VAL, InnerSocket::SendTimerOn(), InnerSocket::SetConnTimer(), InnerSocket::SetLostTimer(), InnerSocket::SetReceiveTimer(), InnerSocket::SetSendTimer(), and sock.

void DCDT_InnerChannel::StartConn  )  [inline, virtual]
 

Implements DCDT_Channel.

Definition at line 268 of file DCDT_InnerChannel.h.

References InnerSocket::Connect(), localCD, MT_CONNECT, InnerCommData::name, remoteCD, InnerSocket::Send(), DCDT_Msg::SetPayload(), and sock.

void DCDT_InnerChannel::StartingPrepare InnerCommData cd,
char *  to
[inline]
 

Definition at line 175 of file DCDT_InnerChannel.h.

References DCDT_TRC_COMM, inner_name, localCD, InnerCommData::name, and TRC_PRINT.

Referenced by DCDT_InnerLinkManager::LookForExistingAgora().

void DCDT_InnerChannel::Stop  )  [inline, virtual]
 

Implements DCDT_Channel.

Definition at line 387 of file DCDT_InnerChannel.h.

References InnerSocket::ForcedClose(), and sock.

void DCDT_InnerChannel::UnblockReceive  )  [inline, virtual]
 

Implements DCDT_Channel.

Definition at line 377 of file DCDT_InnerChannel.h.

References sock, and InnerSocket::UnblockReceive().

void DCDT_InnerChannel::UnblockSend  )  [inline, virtual]
 

Implements DCDT_Channel.

Definition at line 357 of file DCDT_InnerChannel.h.

References sock, and InnerSocket::UnblockSend().

void DCDT_InnerChannel::WaitConn  )  [inline, virtual]
 

Implements DCDT_Channel.

Definition at line 198 of file DCDT_InnerChannel.h.

References CONN_TIMER_VAL, InnerSocket::Connect(), DCDT_Msg::GetPayload(), InnerCommData::name, DCDT_Msg::ReadType(), InnerSocket::Receive(), RECV_TIMER_VAL, remoteCD, InnerSocket::SetReceiveTimer(), and sock.


Member Data Documentation

char* DCDT_InnerChannel::inner_name [private]
 

Destination file name.

Definition at line 96 of file DCDT_InnerChannel.h.

Referenced by DCDT_InnerChannel(), SendNotify(), and StartingPrepare().

InnerCommData* DCDT_InnerChannel::localCD [private]
 

Definition at line 93 of file DCDT_InnerChannel.h.

Referenced by DCDT_InnerChannel(), Dispose(), Open(), Prepare(), SendNotify(), StartConn(), and StartingPrepare().

ProfileType DCDT_InnerChannel::profile [private]
 

Definition at line 91 of file DCDT_InnerChannel.h.

InnerCommData * DCDT_InnerChannel::remoteCD [private]
 

Definition at line 93 of file DCDT_InnerChannel.h.

Referenced by DCDT_InnerChannel(), Dispose(), Prepare(), StartConn(), and WaitConn().

InnerSocket* DCDT_InnerChannel::sock [private]
 

Definition at line 92 of file DCDT_InnerChannel.h.

Referenced by Close(), ConnTimerOff(), ConnTimerOn(), DCDT_InnerChannel(), LostTimerOff(), LostTimerOn(), Open(), Receive(), ReceiveHS(), ReceiveTimerOff(), ReceiveTimerOn(), Send(), SendAnswer(), SendNotify(), SendTimerOff(), SendTimerOn(), SetConnTimer(), SetLostTimer(), SetReceiveTimer(), SetSendTimer(), SetTimers(), StartConn(), Stop(), UnblockReceive(), UnblockSend(), and WaitConn().


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