I need to sniff my traffic.
I've found some related posts: Monitor Network Traffic Mac
How to get network adapter stats in linux/Mac OSX?
And I've had a look at the MenuMeters project
But it implements only common information about traffic: amount of loaded bytes e.t.c
I am going to analyze source code of the wireshark
So I need to create a class that implements protocol:
@protocol NetworkMonitor
- (void)systemWillRequestUrl:(NSURL *)url;
- (BOOL)shouldSystemLoadUrl:(NSURL *)url;
// e.t.c.
@end
Could somebody give me information how can I do this, or point me to some open source projects, sniffers or something like this?