Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 May 2001 11:33:18 -0400
From:      Barney Wolff <barney@databus.com>
To:        Alex Rousskov <rousskov@measurement-factory.com>
Cc:        horape@tinuviel.compendium.net.ar, freebsd-net@FreeBSD.ORG
Subject:   Re: why cannot bind to someipaddress:port when something else has *:port bound?
Message-ID:  <20010530113318.A53768@tp.databus.com>
In-Reply-To: <Pine.BSF.4.10.10105300737040.68439-100000@measurement-factory.com>; from rousskov@measurement-factory.com on Wed, May 30, 2001 at 07:41:42AM -0600
References:  <20010530073150.A15247@tinuviel.compendium.net.ar> <Pine.BSF.4.10.10105300737040.68439-100000@measurement-factory.com>

next in thread | previous in thread | raw e-mail | index | archive | help
See SO_REUSEADDR.
Barney Wolff

On Wed, May 30, 2001 at 07:41:42AM -0600, Alex Rousskov wrote:
> On Wed, 30 May 2001 horape@tinuviel.compendium.net.ar wrote:
> 
> > The following program binds *:1000 to a socket, and then tries to
> > bind 200.47.36.254:1000 to another socket, the error i gets is
> > "Address already in use". Why?
> 
> *:1000 includes 200.47.36.254:1000 by definition of bind(2). Binding
> two sockets to one address (200.47.36.254:1000 in your case) cannot be
> allowed because it is unclear which of the two sockets should recieve
> packets destined to 200.47.36.254:1000. There may be other reasons.
> 
> Alex.
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-net" in the body of the message

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010530113318.A53768>