From owner-freebsd-net@FreeBSD.ORG Wed Mar 7 15:09:35 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 65A5F16A403 for ; Wed, 7 Mar 2007 15:09:35 +0000 (UTC) (envelope-from dudu@dudu.ro) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by mx1.freebsd.org (Postfix) with ESMTP id 01A3213C494 for ; Wed, 7 Mar 2007 15:09:32 +0000 (UTC) (envelope-from dudu@dudu.ro) Received: by nf-out-0910.google.com with SMTP id k27so197626nfc for ; Wed, 07 Mar 2007 07:09:31 -0800 (PST) Received: by 10.78.150.7 with SMTP id x7mr992616hud.1173280171658; Wed, 07 Mar 2007 07:09:31 -0800 (PST) Received: by 10.78.71.19 with HTTP; Wed, 7 Mar 2007 07:09:31 -0800 (PST) Message-ID: Date: Wed, 7 Mar 2007 17:09:31 +0200 From: "Vlad GALU" To: freebsd-net@freebsd.org In-Reply-To: <1173273861.4982.8.camel@aarion> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1173273861.4982.8.camel@aarion> 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: Wed, 07 Mar 2007 15:09:35 -0000 On 3/7/07, Alexandru Arion wrote: > Hi, > > I'm rather new here, so excuses in advance if the question is out of > topic. > > Is there an equivalent in FreeBSD to the SO_ACCEPTCONN option for > getsockopt(), available in Linux? It doesn't actually has to be an > option for getsockopt(), just a way to determine if a socket has been > marked to accept connections with listen(). You can accept() on that socket, which should return EINVAL if the socket wasn't previously passed as an argument to listen(). For the afirmative case, make sure you use non-blocking sockets, otherwise accept() will block. > > Thank you, > Alex Arion > > > _______________________________________________ > 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" > -- If it's there, and you can see it, it's real. If it's not there, and you can see it, it's virtual. If it's there, and you can't see it, it's transparent. If it's not there, and you can't see it, you erased it.