From owner-freebsd-questions Tue Dec 5 7:46: 8 2000 From owner-freebsd-questions@FreeBSD.ORG Tue Dec 5 07:46:06 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from oberon.dnai.com (oberon.dnai.com [207.181.194.97]) by hub.freebsd.org (Postfix) with ESMTP id 3B51237B400 for ; Tue, 5 Dec 2000 07:46:06 -0800 (PST) Received: from neptune.dnai.com (neptune.dnai.com [207.181.194.93]) by oberon.dnai.com (8.9.3/8.9.3) with ESMTP id HAA09397; Tue, 5 Dec 2000 07:46:05 -0800 (PST) Received: from [209.122.225.109] (209-122-225-146.s146.apx1.nyw.ny.dialup.rcn.com [209.122.225.146]) by neptune.dnai.com (8.9.3/8.9.3) with ESMTP id HAA39247; Tue, 5 Dec 2000 07:46:04 -0800 (PST) Mime-Version: 1.0 X-Sender: stevenl@pop.dnai.com Message-Id: In-Reply-To: <20001205141043.A50410@dogma.freebsd-uk.eu.org> References: <20001205141043.A50410@dogma.freebsd-uk.eu.org> Date: Tue, 5 Dec 2000 10:46:06 -0800 To: j mckitrick , freebsd-questions@FreeBSD.ORG From: Steve Leibel Subject: Re: setsockopt() question Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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