#include <DCDT_LinkTx.h>
Inheritance diagram for DCDT_LinkTx:
Public Member Functions | |
DCDT_LinkTx (DCDT_Agora *agora, int id, int r_id, DCDT_LinkRx *ptr) | |
~DCDT_LinkTx () | |
void | Prepare (DCDT_Channel *ch) |
void | Init () |
void | DoYourJob (int par=0) |
FSM machine for the LinkTx member. | |
void | Close () |
void | Subscribe (unsigned int *mask) |
Subscribe this member to the new mask messages. | |
void | Restart (DCDT_Channel *ch) |
void | ChangeStatus (int newstat) |
Private Attributes | |
int | linkID |
int | remoteID |
int | creation_status |
int | status |
int | restart_counter |
int | lost_counter |
DCDT_Channel * | channel |
Class that implements the communication functions. | |
DCDT_Channel * | restarting_ch |
Channel to be used after a restart. | |
unsigned int | mymask [NUMINT_MSGTYPE] |
int | i |
const DCDT_Msg * | msgrcv |
DCDT_Msg * | msgsub |
unsigned int | subs_mask [NUMINT_MSGTYPE] |
Subscriber mask for this Agora, when changes send a message to the remote one. | |
DCDT_LinkRx * | LinkRxPtr |
Friends | |
class | DCDT_LinkRx |
This member implements only channel policies for the message transmission, the real transmission was implements in the DCDT_Channel specified by channel.This member has three main goals:
Definition at line 40 of file DCDT_LinkTx.h.
|
Definition at line 35 of file DCDT_LinkTx.cpp. References DCDT_Member::CreateMsg(), i, linkID, LinkRxPtr, msgrcv, msgsub, MT_SUBSUPD, mymask, NUMINT_MSGTYPE, remoteID, restart_counter, DCDT_Msg::SetDeliveryWarranty(), DCDT_Msg::SetPayload(), status, subs_mask, and TCP_WARRANTY. |
|
Definition at line 44 of file DCDT_LinkTx.h. |
|
Definition at line 52 of file DCDT_LinkTx.h. References status. Referenced by DCDT_LinkRx::DoYourJob(). |
|
Reimplemented from DCDT_Member. Definition at line 56 of file DCDT_LinkTx.cpp. Referenced by DoYourJob(). |
|
FSM machine for the LinkTx member. Initial state is always L_WORKING.
In any state if an exception occours ( TimeOut, ConnError or ChannelError ) the state is always set to L_LOST Implements DCDT_Member. Definition at line 87 of file DCDT_LinkTx.cpp. References DCDT_LinkRx::ChangeStatus(), channel, Close(), DCDT_TRC_COMM, Delay(), DCDT_Channel::KeepAlive(), L_LOST, L_RESTARTING, L_STOPPING, L_WORKING, LINK_LOST_TIMER, linkID, LinkRxPtr, LINKTX_PERIOD, msgrcv, msgsub, DCDT_Member::ReadID(), DCDT_PostOffice::ReadSubscribedMsgMask(), DCDT_Msg::ReadType(), DCDT_Member::ReceiveMsg(), DCDT_Channel::Send(), status, subs_mask, TRC_PRINT, and DCDT_Member::UnSubscribeAll(). |
|
Reimplemented from DCDT_Member. Definition at line 52 of file DCDT_LinkTx.cpp. |
|
Definition at line 67 of file DCDT_LinkTx.cpp. References channel, DCDT_TRC_COMM, status, and TRC_PRINT. Referenced by DCDT_LinkRx::DoYourJob(). |
|
Definition at line 159 of file DCDT_LinkTx.cpp. References restarting_ch, and status. Referenced by DCDT_LinkRx::DoYourJob(). |
|
Subscribe this member to the new mask messages.
Definition at line 144 of file DCDT_LinkTx.cpp. References DCDT_TRC_COMM, DCDT_Member::SubscribeMsgType(), and TRC_PRINT. Referenced by DCDT_LinkRx::DoYourJob(). |
|
Definition at line 41 of file DCDT_LinkTx.h. |
|
Class that implements the communication functions.
Definition at line 59 of file DCDT_LinkTx.h. Referenced by DoYourJob(), and Prepare(). |
|
Definition at line 56 of file DCDT_LinkTx.h. |
|
Definition at line 63 of file DCDT_LinkTx.h. Referenced by DCDT_LinkTx(). |
|
Definition at line 55 of file DCDT_LinkTx.h. Referenced by DCDT_LinkTx(), and DoYourJob(). |
|
Definition at line 69 of file DCDT_LinkTx.h. Referenced by DCDT_LinkTx(), and DoYourJob(). |
|
Definition at line 56 of file DCDT_LinkTx.h. |
|
Definition at line 64 of file DCDT_LinkTx.h. Referenced by DCDT_LinkTx(), and DoYourJob(). |
|
Definition at line 65 of file DCDT_LinkTx.h. Referenced by DCDT_LinkTx(), and DoYourJob(). |
|
Definition at line 62 of file DCDT_LinkTx.h. Referenced by DCDT_LinkTx(). |
|
Definition at line 55 of file DCDT_LinkTx.h. Referenced by DCDT_LinkTx(). |
|
Definition at line 56 of file DCDT_LinkTx.h. Referenced by DCDT_LinkTx(). |
|
Channel to be used after a restart.
Definition at line 59 of file DCDT_LinkTx.h. Referenced by Restart(). |
|
Definition at line 56 of file DCDT_LinkTx.h. Referenced by ChangeStatus(), DCDT_LinkTx(), DoYourJob(), Prepare(), and Restart(). |
|
Subscriber mask for this Agora, when changes send a message to the remote one.
Definition at line 68 of file DCDT_LinkTx.h. Referenced by DCDT_LinkTx(), and DoYourJob(). |