How to get a socket's PID ?
How to get a socket's PID ?
- Subject: How to get a socket's PID ?
- From: Matthew Mashyna <email@hidden>
- Date: Tue, 12 Jan 2010 12:18:35 -0500
I'm working on a project that attempts to monitor some net activity.
I'm using libpcap to watch http packets on port 80, for instance. When
we see a particular type of http header we want to see what
application made the request. pcap will give me the packet, socket, to
and from addresses and more.
I know I can use lsof but that might not be fast enough. I'm looking
for a way to do it in C or ObjC.
Thanks,
Matt
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden