Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 May 2001 07:41:42 -0600 (MDT)
From:      Alex Rousskov <rousskov@measurement-factory.com>
To:        horape@tinuviel.compendium.net.ar
Cc:        freebsd-net@FreeBSD.ORG
Subject:   Re: why cannot bind to someipaddress:port when something else has *:port bound?
Message-ID:  <Pine.BSF.4.10.10105300737040.68439-100000@measurement-factory.com>
In-Reply-To: <20010530073150.A15247@tinuviel.compendium.net.ar>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10105300737040.68439-100000>