elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Estamos en la red social de Mastodon


+  Foro de elhacker.net
|-+  Programación
| |-+  Programación General
| | |-+  .NET (C#, VB.NET, ASP)
| | | |-+  Programación Visual Basic (Moderadores: LeandroA, seba123neo)
| | | | |-+  Socket stay open
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: Socket stay open  (Leído 1,896 veces)
ntaryl

Desconectado Desconectado

Mensajes: 95



Ver Perfil
Socket stay open
« 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


En línea

sebah97

Desconectado Desconectado

Mensajes: 77



Ver Perfil
Re: Socket stay open
« Respuesta #1 en: 29 Enero 2010, 00:16 am »

hello, you can use the google translator if you are not satisfied with your English


En línea

raul338


Desconectado Desconectado

Mensajes: 2.633


La sonrisa es la mejor forma de afrontar las cosas


Ver Perfil WWW
Re: Socket stay open
« Respuesta #2 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)
En línea

ntaryl

Desconectado Desconectado

Mensajes: 95



Ver Perfil
Re: Socket stay open
« Respuesta #3 en: 30 Enero 2010, 17:02 pm »

Thanks  raul338
have a  nice  day   
En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines