Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: Dropping a connection before accept()

From: William Ahern <william(at)25thandClement.com>
Date: Thu Jul 10 2003 - 11:36:17 EDT

On Thu, Jul 10, 2003 at 05:28:01AM -0400, Ted Unangst wrote: <snip>
> i think you have two choices, both in the kernel.

i think something like the former is much more portable. what happens when linux or netbsd adopts a different interface, or different options to sockopts?

sockpeek is explicit, and so is easy to create a wrapper for.

i ran into a similar problem w/ getpeereid() in postgresql. they supported all the wacky socktopts variants of linux, hp/ux, etc. the one thing that they didn't support was getpeereid(). if they had done things the other way around, and started w/ getpeereid() and then created wrappers a significant chunk of heavily #ifdef'd code could have been eliminted and the source would have been easier to read.

$0.02 Received on Thu Jul 10 14:46:45 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:48:42 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library