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

 

 


Tema destacado: Los 10 CVE más críticos (peligrosos) de 2020


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

Desconectado Desconectado

Mensajes: 95



Ver Perfil
how to refresh the ping
« en: 18 Noviembre 2010, 01:32 am »

Good  evening   
Lot  of  rain  outside  and  sit here and  play  a  litle   
i  make a  small example with alistview  and use  a ping  module  to ping  any item(ip)from the list 
My  question is  how  to  make  the item from(ping)refresh it 
when  add  a  new ip  and  try  to ping again the first ping  items be  the same  with the last   .
thanks  for  the time   
have a good  night 

p.s  no  want to  ping  all  time  .any ideas  welcome   


En línea

raul338


Desconectado Desconectado

Mensajes: 2.633


La sonrisa es la mejor forma de afrontar las cosas


Ver Perfil WWW
Re: how to refresh the ping
« Respuesta #1 en: 18 Noviembre 2010, 03:16 am »

I'm sorry, maybe I didn't understand well what you mean. And maybe you wont understand me because my English it's kind a weird English :xD

Are you trying to ping two or more ip's at the same time? You will have to use threads or some trick to do it at the same time.
Or maybe you're saying that when you do a ping from the last ip and try to ping the first ip (for example) the result it's exactly equal than the result of the last ip. That's because you're getting the wrong item.

It's late here, maybe i didn't understand you :xD

Farewell


En línea

ntaryl

Desconectado Desconectado

Mensajes: 95



Ver Perfil
Re: how to refresh the ping
« Respuesta #2 en: 18 Noviembre 2010, 18:49 pm »

Hi  man  thanks  for  ur Reply  .
I have a  listview and add a ip  and  want  to ping  this  ip.
I ping  it  only  one time the  first time but  sometimes  i saw the  (ms) change..Want  to  can see  the  change  and  not ping all items  in  listview (like a  dos attack)
Want  only  to  refresh  the row with  ping (miliseconds)
thanks  for the time 



p.s  sorry  for   my  english  my  english  is  also  bad 

En línea

raul338


Desconectado Desconectado

Mensajes: 2.633


La sonrisa es la mejor forma de afrontar las cosas


Ver Perfil WWW
Re: how to refresh the ping
« Respuesta #3 en: 18 Noviembre 2010, 19:11 pm »

:O Ahh.... now i know what you mean.

How do you "ping" ? using ping command? using a socket module ?

If you're using ping command from batch, you must do a (i thinks it calls..) pipe between cmd and your app. To filter de line and refresh the value in the listview. To an infinite ping you must do "ping (ip) -t" and send Control + C to terminate it

Otherwise, it depends on what are you using. If you don't have a module and you don't use ping command. You should search about ICMP paquets (ping protocol)
En línea

ntaryl

Desconectado Desconectado

Mensajes: 95



Ver Perfil
Re: how to refresh the ping
« Respuesta #4 en: 18 Noviembre 2010, 22:47 pm »

Thanks man 
no  problem  with the  way for  pinging   
My problem is   have a  a timer   with  internal 1000ms 
when  timer  start refresh  the  data  in  item  and  give  to  all of  them   the  same item   
and  some times  is  difrent   
attach my  example   



http://www.mediafire.com/?wxllwsvm27yick2
En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
refresh de formulario
Programación Visual Basic
g_cury 2 2,983 Último mensaje 31 Octubre 2018, 22:15 pm
por gundream
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines