On Jun 2, 2011, at 11:50 AM, Abhinav K Tyagi wrote: > Although i can filter the information based on the extensions of files but > how can i get the information if the opened file is a url. The best case can > be of an audio stream or something like that.
URLs aren’t files. All the kernel knows about a network connection is the IP address and TCP port number it’s connected to. It has no idea what protocol it’s using (HTTP, FTP, IMAP, whatever) or any protocol-specific details like the HTTP path. So no, you can’t derive a URL from the list of open sockets. All you can get is ???://name.of.host:port/???? If you want to sniff all HTTP traffic, which will let you see the paths in the request lines, you can use something like tcpdump. (But it would probably be hard to identify only the HTTP traffic, unless you limit yourself to port 80.) —Jens
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com