Reception des packets icmp

gannout Messages postés 2 Date d'inscription mercredi 27 juillet 2005 Statut Membre Dernière intervention 1 août 2005 - 29 juil. 2005 à 11:20
mcjoedassin Messages postés 196 Date d'inscription mercredi 27 juillet 2005 Statut Membre Dernière intervention 2 septembre 2005 - 30 juil. 2005 à 13:38
salut,comment peut on receptionner des packets icmp
merci...!!!

1 réponse

mcjoedassin Messages postés 196 Date d'inscription mercredi 27 juillet 2005 Statut Membre Dernière intervention 2 septembre 2005
30 juil. 2005 à 13:38
nop, on ne peut pas



lu sur http://www.io.com/~maus/jnetfaq.html :



Ping requires ICMP packets. These packets can only be created via a
socket of the SOCK_RAW type. Currently, Java only allows SOCK_STREAM
(TCP) and SOCK_DGRAM (UDP) sockets. It seems unlikely that this will be
added very soon, since many Unix versions only allow SOCK_RAW sockets
to be created by root, and winsock does not address ICMP packets (win32
includes an unsupported and undocumented ICMP.DLL)
0
Rejoignez-nous