From owner-freebsd-net@FreeBSD.ORG Tue Dec 2 07:19:37 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 954A36E8 for ; Tue, 2 Dec 2014 07:19:37 +0000 (UTC) Received: from mail-wi0-x234.google.com (mail-wi0-x234.google.com [IPv6:2a00:1450:400c:c05::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 27598D0E for ; Tue, 2 Dec 2014 07:19:37 +0000 (UTC) Received: by mail-wi0-f180.google.com with SMTP id n3so19926504wiv.1 for ; Mon, 01 Dec 2014 23:19:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=CHp55owzqs2kRhv6PYSLlkgl77OWDcAegmCc1ZiZ3G8=; b=riI1JPKxMd9z/YUlk2P1obJdyMbSpltQkHSKi495vbzYw0rE07cMd0woDKgAufcOu1 9r87brjwj4djymqKN0/YPHTDuJSl/bWOVR2SPMbREWkFg9bd+WoQNGQC7mW4tjSkRVOn etoMvW1cpZ6IBLol09ePDXwzw5DlJ1EMxfd/GutziZioJRC2Mv07BLrwTCh+7LxOVVFh 9EpBELXGjkLWRYJLhkLqSd95Q0SclXiXDeYPpRZZTL7jVXxqBjqKfBxiuE9wyMqWGtk6 Rud9zOELymFZMYq6DHWXxD3bspK/sprI00AvyJwiuCzBKt4T0PyxBm4yS//e+DSAjbBt 1bpQ== MIME-Version: 1.0 X-Received: by 10.194.110.161 with SMTP id ib1mr103596032wjb.78.1417504775581; Mon, 01 Dec 2014 23:19:35 -0800 (PST) Received: by 10.27.130.68 with HTTP; Mon, 1 Dec 2014 23:19:35 -0800 (PST) In-Reply-To: <547D5493.3020407@rawbw.com> References: <547C5DD3.90604@rawbw.com> <547D1DC6.8030408@rawbw.com> <547D5493.3020407@rawbw.com> Date: Tue, 2 Dec 2014 12:49:35 +0530 Message-ID: Subject: Re: Can multiple apps listen for TCP on the same port? From: Someone Somewhere To: Yuri Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-net@freebsd.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Dec 2014 07:19:37 -0000 backlog is more than one since nc can wait for multiple connections via -k option(and also because backlog value is hard coded). https://www.freebsd.org/cgi/man.cgi?query=nc&apropos=0&sektion=0&manpath=FreeBSD+10.1-RELEASE&arch=default&format=html On 2 December 2014 at 11:26, Yuri wrote: > On 12/01/2014 20:22, Someone Somewhere wrote: > >> I think backlog value has no direct implication here. >> What matters is if the listening socket has been closed after accepting >> the >> client connection or not. >> -Kunal. >> > > I think backlog >1 in one-user one-connect app (as nc) might catch other > connections and later drop them. I might be wrong. > > Yuri >