From owner-freebsd-hackers Thu Dec 14 9:36:13 2000 From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 14 09:36:11 2000 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id D88BC37B400 for ; Thu, 14 Dec 2000 09:36:08 -0800 (PST) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 14 Dec 2000 17:36:06 +0000 (GMT) Date: Thu, 14 Dec 2000 17:36:05 +0000 From: David Malone To: =?iso-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= Cc: freebsd-hackers@freebsd.org Subject: Re: Rejecting a connection: is accept(2) correct? Message-ID: <20001214173605.A53698@walton.maths.tcd.ie> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: ; from mikko@dynas.se on Thu, Dec 14, 2000 at 09:12:18AM -0800 Sender: dwmalone@maths.tcd.ie Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Dec 14, 2000 at 09:12:18AM -0800, Mikko Työläjärvi wrote: > Is this really true? A quick experiment with recvmsg() seems to > indicate it is not, at least not for TCP sockets. I think this applies after you have accepted the connection. You can call getpeername() to choose what to do about the call. You can immediately close the connection if you don't want to deal with it. David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message