0

As we know to get all tcp connections we can use sysctl with "net.inet.tcp.pcblist" as MIB variable .But its output is binary data and must be convert to human readable context which describes IP addresses and active ports and conection states. Netstat program do this job but I couldn't realize that. Anyone can offer a simple code that acts like netsat but in objective C? Thanks in advance!

James C
  • 41
  • 6

0 Answers0