[ns] Agent with some functions in the recv()
garcia_b
armando.garcia_berumen at int-evry.fr
Tue Aug 8 09:03:59 PDT 2006
Hi.
I was wondering if is it possible to have an agent with some (different)
sendmsg() functions to send different messages. And the same question
for the recv(): for each message received if is it possible to call to
different functions at the application layer using the app_-> pointer.
I have this:
Recv(Packet* p, Handler*() {
if message I(ip-src1)
app_->recv_msg1();
if message II(ip-src1)
app_->recv_msg2();
if message III(ip-src1)
app_->recv_msg3();
}
But at the moment of running it, it marks
segmentation error
--
Armando Garcia B.
INT-RST
5 Rue Charles Fourier
91011 EVRY Cedex
Tel: 01 60 76 68 56
More information about the Ns-users
mailing list