Date: Thu, 08 Mar 2007 15:19:12 +0200 From: Alexandru Arion <aarion@bitdefender.com> To: "Bruce M. Simpson" <bms@FreeBSD.org> Cc: freebsd-net@freebsd.org Subject: Re: SO_ACCEPTCONN equivalent Message-ID: <1173359952.4957.29.camel@aarion> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1173359952.4957.29.camel>