send messages problem

2 views
Skip to first unread message

Alexandre DESTRUEL

unread,
Jul 2, 2009, 5:34:06 AM7/2/09
to omn...@googlegroups.com
Hello
I write this code to sned a message directly to a gate:

void RIO::handleMessage(cMessage *msg)
{
    cGate *OBCIn = gateHalf("OBC", cGate::INPUT);
    cGate *OBCOut = gateHalf("OBC", cGate::OUTPUT);

    send(cMessage *msg, *OBCIn, int index =7);

On the User manual, the definition to send message knowledge the gatename is : send(cMessage *msg, const char *gatename, int index=0);
How can i get the index value of the corresponding gate ? I write 7 but i don't know witch one is.
Thks
Alex

Reply all
Reply to author
Forward
0 new messages