The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 11-28-2003
Namely Namely is offline
Registered User
  
 

Join Date: Oct 2003
Posts: 4
[Problem]Reuse port in BSD socket

I write a chat server using BSD socket, which is listen to
an specific port, say 1212. After the chat server is shutdown,
I want to execute the program again. But kernel will say that
the port 1212 is now unavailable. I have to wait for a while to
reuse the port 1212.

I am sure there's no other user using the same port on the
workstation.

Please tell me how to reuse the port.

thanks for help.