title: omnetpp.ini File Explanation
body: <pre><code># ping app (host[0] pinged by others)
  *.host[0].numPingApps = 0
  *.host[*].numPingApps = 2
  *.host[*].pingApp[*].destAddr = "host[0]"
  **.pingApp[0].startTime = uniform(1s,5s)
  **.pingApp[1].startTime = 5s+uniform(1s,5s)
  **.pingApp[*].printPing = true
  </code></pre>
  
  <p>The above is a snippet of an <code>omnetpp.ini</code> file for initializing simulations (Currently I'm trying to simulate a WSN "Wireless Sensor Network". Hosts represent sensor nodes. I want to know exactly what does these two lines mean:</p>
  
  <pre><code>*.host[0].numPingApps = 0
  *.host[*].numPingApps = 2
  </code></pre>
  
  <p>Does it mean that <code>host[0]</code> does not ping any of the others, and all the other hosts ping <code>host[0]</code> twice? Can someone please explain.</p>
  
  <p>What if I want a packet (or <code>cMessage</code>) to travel from <code>host[0]</code> to <code>host[n]</code>? Is there any packages from INET I can use? (like using <code>pingApp</code> does the pinging to a certain host)</p>