do any one ha a code for this:

1) i have a socket Server that listens(ARRAY)
2) i have a client socket that connects to server.
3) if i connect 5 clients and socket(3) closes, if i open
another client, i want it to connect to socket(3) and not load
another control so that the number of sockets is reduced.


I'm stuck with this **** part. but my app is running fine it's just i want to make it more efficient and resource friendly.

IF you have any code for this i'd appreciate it. thanks.