Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 02 Aug 2000 18:52:20 -0700
From:      Loganathan Ramasamy <Loganathan.Ramasamy@oracle.com>
To:        freebsd-net@freebsd.org
Subject:   why SO_REUSEADDR option ?
Message-ID:  <3988D054.67921194@oracle.com>

next in thread | raw e-mail | index | archive | help
In the Richard stevens "Unix Network Programming" , it is mentioned
that  one of the
scenarios in which  SO_REUSEADDR  used  is
"To bind the same port number  with different IP aliases of the host
system to different endpoints"
I didn't quite get the reason why SO_REUSEADDR has to be used in this
scenario.
If i don't use why will i get the error "address already in use" , since
Source IP address in a 5 tuple connection is going to be different for
different endpoints.
ie
why bind(IP1,P1) and bind (IP2,P1)  should give error if i don't use
SO_REUSEADDR ??

So can somebody explain  it .

Thanks
loganathan.R



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?3988D054.67921194>