--- In [email protected], Ahmed Shabana <unlimited...@...> wrote:
>
> it give error in bind() in the second time I ran  the same program

I don't get an error- what port value are you using?

Try doing calling perror() when the bind() (or any other system call)
fails, to tell you why it's failing.

I remember something similar happening with a program I wrote - you
just had to wait a while (approx a minute I think) for the system to
release whatever resources it had allocated. But I can't remember if
that was due to a bind() or something else. Do you still get the error
if you wait for a couple of minutes before running again?

John

Reply via email to