Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to proxy a non blocking connect with a socket filter?



After having run into the unfortunate limitation of a socket filter not being able to stop or delay a remote tcp socket close from being visible, I am trying to find another way to solve the problem.

I have changed my socket filter to proxy connects to a user space process instead of swallowing packets as proposed by the message below.  This appears to be working well for blocking connects, but I have no idea how to hook a non blocking connect properly. 

In message http://lists.apple.com/archives/darwin-kernel/2007/Mar/msg00081.html
it says:
If the socket is a non-blocking socket, things may be a little trickier. I can't remember the exact details, but it can be made to work.


Would someone know those details? :)

--
Karl Pickett
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -- Benjamin Franklin
"Eternal vigilance is the price of liberty." -- Wendell Phillips
"One man with courage makes a majority." -- Andrew Jackson, 1832
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-kernel/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.