[Pythonmac-SIG] Python solution to monitor your internet connection?

Bob Ippolito bob at redivi.com
Sun Jan 18 12:21:56 EST 2004


On Jan 18, 2004, at 11:25 AM, W.T. Bridgman wrote:

> I know of a few commercial/shareware packages that can monitor your 
> machine for apps that try to 'phone home' when you're online, but does 
> anyone know of any open source (preferably Python) solutions for this?
>
> If not, can anyone point me to somewhere that I might find out what I 
> need to write such an app that can monitor my internet connection?  
> I'm specifically interested in monitoring OS X applications.  Do the 
> python internet modules have sufficient access to the internet API to 
> do this?

You pretty much have to write the bulk of such a thing in C, since you 
have to intercept calls to C functions from other processes.  There's a 
few ways to do it, I'm not sure which way Little Snitch uses, but it's 
definitely not even close to possible from Python (this year).

-bob




More information about the Pythonmac-SIG mailing list