Omnet++/INET framework: how to set and use UDP simulated applications -
in our simulation trying simulate lisp mobile protocol inet framework 1 mobile node , 1 fixed node (a correspondent node not mobile) exchanging udp packets. that's why decided use udpbasicapp
simulated application , gave both nodes.
the problem see no udp packet generated , initialize()
method inside udpbasicapp
called more once.
this because addresses array inside class empty , returns without scheduling new events.
the problem how know ip addresses of nodes can write them inside .ini
file. know how?
it totally ok use module names in destaddress parameter (instead of ip adresses). inet can resolve domain names resolved in real life.
if want configure hosta send data hostb, use:
*.hosta.udpapp[0].destaddresses = "hostb"
Comments
Post a Comment