Re: receiving all network traffic for a process?
Re: receiving all network traffic for a process?
- Subject: Re: receiving all network traffic for a process?
- From: "Alastair J.Houghton" <email@hidden>
- Date: Thu, 9 Oct 2003 10:56:31 +0100
On Thursday, October 9, 2003, at 03:11 am, Steven D. Arnold wrote:
I'm working on an open-source application that essentially acts as a
local
application proxy. To do this, I'm trying to receive all network
traffic to
and from a given process. I want it to be process-based rather than
port-based because the process may attempt to send data to an
arbitrary port
from an essentially random port.
That *really* isn't easy. To be honest, I think you're going to need
kernel code to make it work, since AFAIK that's the only place you
could block a specific application from receiving packets, although it
is possible that you might be able to work by fooling with the dynamic
linker and hooking all of the networking routines.
Try asking on the macnetworkprog or darwin mailing lists instead; they
stand a better chance of answering your question.
Kind regards,
Alastair.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.