.... How to Find Your Subject Study Group & Join ....   .... Find Your Subject Study Group & Join ....  

We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Study Groups By Subject code Wise (Click Below on your university link & Join Your Subject Group)

[ + VU Study Groups Subject Code Wise ]  [ + COMSATS Virtual Campus Study Groups Subject Code Wise ]

Looking For Something at vustudents.ning.com?Search Here

Me computer1 se computer2(Server) ko msg send kr raha hu or chahta hu k computer2(Server) us ka reply msg1 ki jagha Ack1 kry how it possible. 

Coding

#include <string.h>
#include <omnetpp.h>

using namespace omnetpp;
class computer : public cSimpleModule
{
protected:
// The following redefined virtual function holds the algorithm.
virtual void initialize() override;
virtual void handleMessage(cMessage *msg) override;
};

Define_Module(computer);

void computer::initialize()
{

if (strcmp("computer1", getName()) == 0) {

cMessage *msg = new cMessage("Msg1");
send(msg, "out");
}
}

void computer::handleMessage(cMessage *msg)
{

send(msg, "out");
}

Share This With Friends......


How to Find Your Subject Study Group & Join.

Find Your Subject Study Group & Join.

+ Click Here To Join also Our facebook study Group.


This Content Originally Published by a member of VU Students.

+ Prohibited Content On Site + Report a violation + Report an Issue

+ Safety Guidelines for New + Site FAQ & Rules + Safety Matters

+ Important for All Members Take a Look + Online Safety


Views: 99

See Your Saved Posts Timeline

Reply to This

Replies to This Discussion

so you need to create another message and send it

in this method, instead of sending back same message create another one and send that one

void computer::handleMessage(cMessage *msg)
{

cMessage *ackMsg = new cMessage("Ack1");
send(ackMsg, "out");
}

not sure if this will work, but my assumption based on shared code 



not working 

ye to msg1 show hota ye Ack1 dono work nahi kr rahy

kya yeah sara code hay? mujhay lagta hay kaam karna chahiee

ye Omnet++ software hy jis pe hm to node bna k us pe c++ k code k sath communication krwa rahy hen 

itni b ni ati 

bakhtu ye puch rahi k bta rahi 

bta rhi 

hahahaha nikammi hi ho

OMNeT++  

inni v nae ati hm abi start kera... and u nay ki pangy lena start kar deay

mai itni laik kisi din ni the

ho e nikammi dono

RSS

Forum Categorizes

Job's & Careers (Latest Jobs)

Admissions (Latest Admissons)

Scholarship (Latest Scholarships)

Internship (Latest Internships)

VU Study

Other Universities/Colleges/Schools Help

    ::::::::::: More Categorizes :::::::::::

Latest Activity

+ M.Tariq Malik replied to + M.Tariq Malik's discussion CS701 Spring 2018 Mid Term Papers Pattern & Questions 24 June 2018 to 04 July 2018 & Helping Material in the group CS701 Theory of Computation
1 hour ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion CS701 Spring 2018 Mid Term Papers Pattern & Questions 24 June 2018 to 04 July 2018 & Helping Material in the group CS701 Theory of Computation
1 hour ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion CS701 Spring 2018 Mid Term Papers Pattern & Questions 24 June 2018 to 04 July 2018 & Helping Material in the group CS701 Theory of Computation
1 hour ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion CS602 Spring 2018 Mid Term Papers Pattern & Questions 24 June 2018 to 04 July 2018 & Helping Material in the group CS602 Computer Graphics
1 hour ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion CS408 Spring 2018 Mid Term Papers Pattern & Questions 24 June 2018 to 04 July 2018 & Helping Material in the group CS408 Human Computer Interaction
1 hour ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion MGT510 Spring 2018 Mid Term Papers Pattern & Questions 24 June 2018 to 04 July 2018 & Helping Material in the group MGT510 Total Quality Management (alt. code=MGMT510)
1 hour ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion MGT510 Spring 2018 Mid Term Papers Pattern & Questions 24 June 2018 to 04 July 2018 & Helping Material
1 hour ago
+ M.Tariq Malik's 7 discussions were featured
1 hour ago

Member of The Month

© 2018   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service