From owner-freebsd-net@FreeBSD.ORG Thu Mar 8 13:20:55 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 59E3E16A404 for ; Thu, 8 Mar 2007 13:20:55 +0000 (UTC) (envelope-from aarion@bitdefender.com) Received: from mail.bitdefender.com (ns.bitdefender.com [217.156.83.1]) by mx1.freebsd.org (Postfix) with ESMTP id 85E6013C4AC for ; Thu, 8 Mar 2007 13:20:54 +0000 (UTC) (envelope-from aarion@bitdefender.com) Received: (qmail 7933 invoked by uid 1010); 8 Mar 2007 15:20:52 +0200 Received: from unknown (HELO ?192.168.80.24?) (aarion@bitdefender.com@192.168.80.24) by mail.bitdefender.com with SMTP; 8 Mar 2007 15:20:52 +0200 From: Alexandru Arion To: "Bruce M. Simpson" In-Reply-To: <45EFF531.5080507@FreeBSD.org> References: <1173273861.4982.8.camel@aarion> <45EF13CD.8020800@FreeBSD.org> <1173345342.4957.13.camel@aarion> <45EFF531.5080507@FreeBSD.org> Content-Type: text/plain Organization: SOFTWIN Date: Thu, 08 Mar 2007 15:19:12 +0200 Message-Id: <1173359952.4957.29.camel@aarion> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Content-Transfer-Encoding: 7bit X-BitDefender-Scanner: Clean, Agent: BitDefender qmail 2.0.0 on mail.bitdefender.com X-BitDefender-SpamStamp: v1, bayes score: 500, neunet score: 500, total: 0 X-BitDefender-Spam: No (0) Cc: freebsd-net@freebsd.org Subject: Re: SO_ACCEPTCONN equivalent X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Mar 2007 13:20:55 -0000 On Thu, 2007-03-08 at 11:36 +0000, Bruce M. Simpson wrote: > Alexandru Arion wrote: > > > > Thanks for both suggestions. Since I'll support version 5.4 and up, this > > leaves me to using the workaround implied by calling accept and checking > > the returned value, for now. > > > Erm. It looks like it's implemented in 5.4 as well, although you might > have mentioned in your original mail you were working with a legacy > version of FreeBSD. :^) > Tried it on fresh install of 5.4: compiled the source locally, run, got error "Protocol not available". Same code works on Linux. By replacing SO_ACCEPTCONN with SO_REUSEADDR, or any other option that appears in the manual page for 5.4, the program works correctly. Bruce, is there something I'm missing? Thanks, Alex. > http://fxr.watson.org/fxr/ident?v=RELENG54&i=SO_ACCEPTCONN > > BMS > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >