title: Network Activity Monitoring on iPhone
body: <p>I've been working for 5 days trying to learn and implement Network monitor on the iPhone.
  I looked into netstat code from apple, and i lost like 25% of my hair. </p>
  
  <p>I found links for JB Devices but i need it to execute on a non JB device. (Irrespective of whether Apple accepts it on the App store or not).</p>
  
  <p>I found some useful links :</p>
  
  <p><a href="https://stackoverflow.com/questions/8176839/how-to-get-tcp-udp-opening-port-list-on-iphone-by-objective-c?rq=1">how to get tcp udp opening port list on iPhone</a> (I couldn't parse the data returned in this question :( )</p>
  
  <p><a href="https://stackoverflow.com/questions/7946699/iphone-data-usage-tracking-monitoring">Data Usage on iPhone</a></p>
  
  <p><a href="https://stackoverflow.com/questions/12930290/in-ios-what-is-type-of-buf-return-by-sysctlbynamenet-inet-tcp-pcblist-buf">sysctlbyname buf return type</a> (I'm not a networking guy..could not understand this one, may be you guys can help :) )</p>
  
  <p><a href="https://stackoverflow.com/questions/6527065/how-to-list-tcp-udp-connections-in-ios-4?lq=1">TCP/UPD port list</a></p>
  
  <p>I can say i got some thing from the first link. Can you guys help me to Parse the data ?
  Is there any other method to achieve this?? </p>