Search code examples
network-programmingintercept

How can I intercept all network calls coming out of my C app?


I'm working on a large, legacy project and for some complicated reasons, I want to see all the network requests coming out. I tried hooking socket(1), but it doesn't seem to catch everything. I'm doing this for Apple devices (UNIX-y, with both BSD and POSIX calls).


Solution

  • I want to see all the network requests coming out.

    I would use Wireshark for that.