Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Dec 2000 10:46:06 -0800
From:      Steve Leibel <stevel@bluetuna.com>
To:        j mckitrick <jcm@FreeBSD-uk.eu.org>, freebsd-questions@FreeBSD.ORG
Subject:   Re: setsockopt() question
Message-ID:  <v0421010ab652e85675f9@[209.122.225.109]>
In-Reply-To: <20001205141043.A50410@dogma.freebsd-uk.eu.org>
References:  <20001205141043.A50410@dogma.freebsd-uk.eu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
At 2:10 PM +0000 12/5/00, j mckitrick wrote:
>Hi alll,
>
>if I want to reuse a socket, when should I call setsockopt() with
>SO_REUSEADDR?  Before or after bind()?  Before or after listen()?


RIght after creating the socket (after the call to socket()), but 
before bind().



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




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