Re: interception of socket connections?
Re: interception of socket connections?
- Subject: Re: interception of socket connections?
- From: "Peter Lovell" <email@hidden>
- Date: Tue, 26 Aug 2003 19:18:52 -0400
>
Hi,
>
>
A question came up that I thought I would ask here (I have sent an
>
email to Quinn and Christophe as well). I knew how to get the raw data
>
stream in OS 9 using Autopush. Now I wanted to do something "kind of
>
the same" on OS X.
>
>
On the Windows platform, Winsock Layered Service Provider (LSP) allows
>
interception of socket connections. One can identify that it is for a
>
POP3 connection and go from there.
>
>
What I need to do on OS X, is come up with a way to intercept the
>
traffic coming in and handle *only* POP3 traffic.
>
>
Is interception of socket connections possible on OS X? and if so,
>
where is the documentation/code samples which describe interception of
>
socket connections on OS X before they are handled upstream by the
>
local applications.
>
Hi Randy,
it is possible but it is not easy. It's done using "Network Kernel
Extensions" which, as the name suggests, are loaded into the kernel and
can intercept and deal with network traffic.
There's not a lot of sample code and I don't think that what there is is
up-to-date. there are some folks on this list (including some lurkers)
who can help.
"How hard" depends upon just what you need to do with the POP3 traffic.
If you can give a few details that would help.
Regards.....Peter
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.