Alexandre DESTRUEL
unread,Jul 2, 2009, 5:34:06 AM7/2/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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