#include <DCDT_InnerChannel.h>
Inheritance diagram for DCDT_InnerChannel:
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_Msg * | Receive () |
void | ReceiveHS (HSMsgHeader *&header, CommData *&remote) |
void | Dispose () |
void | Close () |
void | KeepAlive () |
CommData * | GetCommData () |
CommData * | GetStartingCD () |
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 |
InnerSocket * | sock |
InnerCommData * | localCD |
InnerCommData * | remoteCD |
char * | inner_name |
Destination file name. |
Definition at line 40 of file DCDT_InnerChannel.h.
|
Definition at line 42 of file DCDT_InnerChannel.h. References _HSMsgHeader::AgoraID, _HSMsgHeader::channel, inner_name, localCD, _HSMsgHeader::payload_len, remoteCD, and sock. |
|
Definition at line 136 of file DCDT_InnerChannel.h. |
|
Implements DCDT_Channel. Definition at line 58 of file DCDT_InnerChannel.h. |
|
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(). |
|
Implements DCDT_Channel. Definition at line 337 of file DCDT_InnerChannel.h. References InnerSocket::ConnTimerOff(), and sock. |
|
Implements DCDT_Channel. Definition at line 332 of file DCDT_InnerChannel.h. References InnerSocket::ConnTimerOn(), and sock. |
|
Implements DCDT_Channel. Definition at line 278 of file DCDT_InnerChannel.h. References localCD, InnerCommData::name, and remoteCD. |
|
Implements DCDT_Channel. Definition at line 69 of file DCDT_InnerChannel.h. |
|
Returns a heap memory area of which is no more responsible Implements DCDT_Channel. Definition at line 70 of file DCDT_InnerChannel.h. |
|
Implements DCDT_Channel. Definition at line 68 of file DCDT_InnerChannel.h. |
|
Implements DCDT_Channel. Definition at line 322 of file DCDT_InnerChannel.h. References InnerSocket::LostTimerOff(), and sock. |
|
Implements DCDT_Channel. Definition at line 317 of file DCDT_InnerChannel.h. References InnerSocket::LostTimerOn(), and sock. |
|
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(). |
|
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(). |
|
Implements DCDT_Channel. Definition at line 71 of file DCDT_InnerChannel.h. |
|
Implements DCDT_Channel. Definition at line 228 of file DCDT_InnerChannel.h. References InnerSocket::Receive(), and sock. |
|
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(). |
|
Implements DCDT_Channel. Definition at line 372 of file DCDT_InnerChannel.h. References InnerSocket::ReceiveTimerOff(), and sock. Referenced by DCDT_InnerLinkManager::Init(). |
|
Implements DCDT_Channel. Definition at line 367 of file DCDT_InnerChannel.h. References InnerSocket::ReceiveTimerOn(), and sock. Referenced by DCDT_InnerLinkManager::LookForExistingAgora(). |
|
Implements DCDT_Channel. Definition at line 55 of file DCDT_InnerChannel.h. |
|
Implements DCDT_Channel. Definition at line 382 of file DCDT_InnerChannel.h. References Open(). |
|
Send msg to the connected socket.
Implements DCDT_Channel. Definition at line 242 of file DCDT_InnerChannel.h. References InnerSocket::Send(), and sock. |
|
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(). |
|
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(). |
|
Implements DCDT_Channel. Definition at line 352 of file DCDT_InnerChannel.h. References InnerSocket::SendTimerOff(), and sock. |
|
Implements DCDT_Channel. Definition at line 347 of file DCDT_InnerChannel.h. References InnerSocket::SendTimerOn(), and sock. |
|
Implements DCDT_Channel. Definition at line 327 of file DCDT_InnerChannel.h. References InnerSocket::SetConnTimer(), and sock. |
|
Implements DCDT_Channel. Definition at line 312 of file DCDT_InnerChannel.h. References InnerSocket::SetLostTimer(), and sock. |
|
Implements DCDT_Channel. Definition at line 362 of file DCDT_InnerChannel.h. References InnerSocket::SetReceiveTimer(), and sock. Referenced by DCDT_InnerLinkManager::LookForExistingAgora(). |
|
Implements DCDT_Channel. Definition at line 342 of file DCDT_InnerChannel.h. References InnerSocket::SetSendTimer(), and sock. |
|
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. |
|
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. |
|
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(). |
|
Implements DCDT_Channel. Definition at line 387 of file DCDT_InnerChannel.h. References InnerSocket::ForcedClose(), and sock. |
|
Implements DCDT_Channel. Definition at line 377 of file DCDT_InnerChannel.h. References sock, and InnerSocket::UnblockReceive(). |
|
Implements DCDT_Channel. Definition at line 357 of file DCDT_InnerChannel.h. References sock, and InnerSocket::UnblockSend(). |
|
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. |
|
Destination file name.
Definition at line 96 of file DCDT_InnerChannel.h. Referenced by DCDT_InnerChannel(), SendNotify(), and StartingPrepare(). |
|
Definition at line 93 of file DCDT_InnerChannel.h. Referenced by DCDT_InnerChannel(), Dispose(), Open(), Prepare(), SendNotify(), StartConn(), and StartingPrepare(). |
|
Definition at line 91 of file DCDT_InnerChannel.h. |
|
Definition at line 93 of file DCDT_InnerChannel.h. Referenced by DCDT_InnerChannel(), Dispose(), Prepare(), StartConn(), and WaitConn(). |
|
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(). |