Foro de elhacker.net

Programación => Programación Visual Basic => Mensaje iniciado por: ntaryl en 28 Enero 2010, 22:54 pm



Título: Socket stay open
Publicado por: ntaryl en 28 Enero 2010, 22:54 pm
Good evening   
Play with a small client server application .When listen for connections all my example clients connect succesfuly  on Server and all  data  arrive  on the list.
But  when connect 5 clients and close the number (3 client)  The  socket from  3 connection still open i think .Because if try to load another one client the new client take the number 6  ..
How  can make this  if the  client 3 close  then the  new client  take the number 3 again ?
sorry  for my english 
Have a good  time  and  talk tommorow


Título: Re: Socket stay open
Publicado por: sebah97 en 29 Enero 2010, 00:16 am
hello, you can use the google translator if you are not satisfied with your English


Título: Re: Socket stay open
Publicado por: raul338 en 29 Enero 2010, 00:28 am
Some time ago, i had a similar problem (A client connect, disconnect, and the socket stays open in "TIME_WAIT"). How I Fixed it? Deleting the entire socket from the memory and making other one. Maybe you have to destroy the disconected socket and make a new one on that place.

Sorry for my english too..

(si alguien no entiende lo que digo, es que yo tenia un problema parecido. La solucion fue borrar el socket entero de la memoria e instanciar otro, si no se entiende que alguien se lo explique por favor :P)


Título: Re: Socket stay open
Publicado por: ntaryl en 30 Enero 2010, 17:02 pm
Thanks  raul338
have a  nice  day