I want to create listen server socket.
After I accept a socket on it I want to
stop listen , and when the connection is closed I want to relisten.
I wrote the next code but I cannot recreate the socket because it is still in use.
Is there any way to solve this problem exept of deleting the object ?