More questions on sockets

Chris Shenton chris at asylum.gsfc.nasa.gov
Wed Jun 19 00:05:47 AEST 1991


   In article <1991Jun14.162215.14657 at ncsu.edu>, jwb at cepmax.ncsu.edu (John W. Baugh Jr.) writes:

   >   - when trying to bind a stream socket I sometimes get an error
   >     "Address already in use", even though I've closed the socket (for
   >     example, when I run the program in succession a couple of times).
   >     Is there something else I have to do?

In article <1991Jun18.050654.17373 at thunder.mcrcim.mcgill.edu> mouse at thunder.mcrcim.mcgill.edu (der Mouse) writes:

   Wait.  As far as I can tell that's the only thing to be done.  

I've encountered the same thing, and came up with the same non-fix. Any
idea how long you have to wait (don't say ``until the port's free'' :-).
Why?
--
One should drink little ... but often.		   -- Henri de Toulouse-Lautrec



More information about the Comp.unix.programmer mailing list