Re: Shutting down sockets - HELP


David R. Stampf (bnlux0!drs@sbcs.sunysb.edu)
14 Sep 88 03:41:42 GMT


In article <632@prlhp1.prl.philips.co.uk> > cattelld@prlhp1.UUCP () writes:
>
>HELP ! An apparent flaw in BSD sockets (on an Apollo
>workstation) is giving me hassle!
>
>If I open a socket and bind an address to it and the program
>subesequently crashes, how can I release that address from its
>original use so I can reuse it on a subsequent invocation of
>the same program ? Currently one crash precipitates another,
>or at least prevents the program functioning.
>

        I'm facing a similar problem currently on Vaxes and Suns,
so I doubt that it is Apollo specific. A good approach (I think) is
to have the O/S pick a port for you (bind with an address of INADDR_ANY),
then rendez-vous at a well known port using a datagram approach to exchange
the port to use and prevent tying up a port.

        Sorry this is vague - I'm home and doing this from a very tired
memory.

        < dave stampf



This archive was generated by hypermail 2.0b3 on Thu Mar 09 2000 - 14:43:30 GMT