--- a/src/DAF/CDAP/CACE.h
+++ b/src/DAF/CDAP/CACE.h
@@ -17,12 +17,54 @@
#define __RINA_CACE_H_
#include <omnetpp.h>
+#include "RINASignals.h"
+#include "CDAPMessage_m.h"
+#include "CACEListeners.h"
+#include "ExternConsts.h"
+#include "AE.h"
+class LisCACEConReq;
+class LisCACERelReq;
+class LisCACEAuthRes;
class CACE : public cSimpleModule
{
+public:
+ void processMRelease(CDAPMessage *cmsg);
+ void processMConnect(CDAPMessage *cmsg);
+ void processMConnectResPosi(CDAPMessage *cmsg);
+ void processMConnectResNega(CDAPMessage *cmsg);
+ void treatAuthRes(CDAPMessage *cmsg);
protected:
+
+ int handle;
+ int potentialConTimer;
+ int currentConRetries;
+ int maxConRetries;
+ AE* ae;
+
+ simsignal_t sigCACEAuthReq;
+ simsignal_t sigCACEConResPosi;
+ simsignal_t sigCACEConResNega;
+ simsignal_t sigCACERelRes;
+
+ LisCACEConReq* lisCACEConReq;
+ LisCACERelReq* lisCACERelReq;
+ LisCACEAuthRes* lisCACEAuthRes;
+
virtual void initialize();
virtual void handleMessage(cMessage *msg);
+ void changeConnectionState(CDAPConnectionState connectionState);
+ void initPointers();
+ void initSignalsAndListeners();
+ void CACEStateMachine(CDAPMessage *cmsg);
+ void processMRelease();
+ void processMReleaseR(CDAPMessage *cmsg);
+ void sendMessage(CDAPMessage *cmsg);
+ void signalizeAuthenticationRequest(CDAPMessage* cmsg);
+ void signalizeConnResponseNegative(CDAPMessage* cmsg);
+ void signalizeConnResponsePositive(CDAPMessage* cmsg);
+ void signalizeReleaseResponse(CDAPMessage* cmsg);
+
};
#endif