File tree Expand file tree Collapse file tree
MecApps/MecRequestBackgroundGeneratorApp Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class MecRequestBackgroundGeneratorApp : public MecAppBase
2424{
2525 protected:
2626
27- int numberOfApplications_; // requests to send in this session
27+ int numberOfApplications_ = 0 ; // requests to send in this session
2828 cMessage *burstTimer = nullptr ;
2929 cMessage *burstPeriod = nullptr ;
3030 bool burstFlag = false ;
Original file line number Diff line number Diff line change @@ -36,21 +36,21 @@ class MecResponseApp : public MecAppBase
3636 inet::TcpSocket *serviceSocket_ = nullptr ;
3737
3838 inet::UdpSocket ueAppSocket_;
39- int localUePort_;
39+ int localUePort_ = - 1 ;
4040
4141 HttpBaseMessage *mp1HttpMessage = nullptr ;
4242
4343 cMessage *currentRequestfMsg_ = nullptr ;
4444 cMessage *processingTimer_ = nullptr ;
45- simtime_t msgArrived_;
46- simtime_t getRequestSent_;
47- simtime_t getRequestArrived_;
48- double processingTime_;
45+ simtime_t msgArrived_ = 0 ;
46+ simtime_t getRequestSent_ = 0 ;
47+ simtime_t getRequestArrived_ = 0 ;
48+ double processingTime_ = 0 ;
4949
5050 inet::B packetSize_;
5151
52- int minInstructions_;
53- int maxInstructions_;
52+ int minInstructions_ = 0 ;
53+ int maxInstructions_ = 0 ;
5454
5555 // address+port of the UeApp
5656 inet::L3Address ueAppAddress;
@@ -60,7 +60,7 @@ class MecResponseApp : public MecAppBase
6060 // this is obtained by sending a GET request to the Service Registry as soon as
6161 // the connection with the latter has been established
6262 inet::L3Address serviceAddress_;
63- int servicePort_;
63+ int servicePort_ = - 1 ;
6464
6565 int numInitStages () const override { return inet::NUM_INIT_STAGES ; }
6666 void initialize (int stage) override ;
You can’t perform that action at this time.
0 commit comments