On Jun 10, 1:34=A0pm, "avakharia_ibs...@[EMAIL PROTECTED]
"
<avakharia_ibs...@[EMAIL PROTECTED]
> wrote:
> Hi All,
>
> I have sent one post in this group long before. Issue was my
> application was not able to bind on ****t.
> Senerio was one client was connected successfully and then I close the
> application and If I switch the user and try to bind the the ****t on
> application launch, bind function was always failed.
>
> =A0Actually there is no logic. But with these two changes it is working
> perfect. If someone Know the reason for it and specific to MAC. Please
> let me know.
There IS logic to it and it has nothing to do with your Media Access
Controller (or, with your Mac, if that's what you mean by the
misplaced acronym).
Sockets stay bound for a short period of time after they have been
closed, up to several seconds. There is a socket option that you can
set when binding the socket that will allow you to rebind to a ****t
that was recently closed. See "Advanced Programming in the UNIX
Environment (2nd Ed.)" by Rago and Stevens, chapter 16 (I think it's
in section 16.6, page 579-581) for the gory details.


|