From owner-freebsd-hackers Fri Sep 21 8:20:33 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from math.missouri.edu (math.missouri.edu [128.206.49.180]) by hub.freebsd.org (Postfix) with ESMTP id BD5AE37B41C for ; Fri, 21 Sep 2001 08:20:27 -0700 (PDT) Received: from math.missouri.edu (cauchy.math.missouri.edu [128.206.49.166]) by math.missouri.edu (8.11.3/8.11.3) with ESMTP id f8LFKRK63232 for ; Fri, 21 Sep 2001 10:20:27 -0500 (CDT) (envelope-from stephen@math.missouri.edu) Message-ID: <3BAB5ABB.2364244@math.missouri.edu> Date: Fri, 21 Sep 2001 10:20:27 -0500 From: Stephen Montgomery-Smith Organization: University of Missouri X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.ORG Subject: Re: Could not bind References: <3BA3F70D.27C2136@math.missouri.edu> <3BA520BC.E26A64F0@mindspring.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thanks everyone for exellent answers - I learned something from every single email I received in response. Thanks, Stephen > Stephen Montgomery-Smith wrote: > > > > I have written a server program that listens on port 3000. The program > > works very well except for one feature. I am asking if that is normal, > > or whether I forgot something. > > > > If I run the program it does fine. If I then kill the program (after it > > has accepted connections), and then run the program again, the bind > > function fails to work, and I get a message like "Could not bind" (see > > program below). If I wait a while, like a minute or two, then the > > program will work again. Is this normal behavior, or did I miss > > something? > -- Stephen Montgomery-Smith stephen@math.missouri.edu 307 Math Science Building stephen@showme.missouri.edu Department of Mathematics stephen@missouri.edu University of Missouri-Columbia Columbia, MO 65211 USA Phone (573) 882 4540 Fax (573) 882 1869 http://www.math.missouri.edu/~stephen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message