A voir également:
- Faire un ping ???
- Port ping ✓ - <a href="https://forums.commentcamarche.net/forum/programmation-3">Forum Programmation</a>
- T'as du ping - <a href="https://forums.commentcamarche.net/forum/reseau-5">Forum Réseau</a>
- Ping google.com - <a href="https://forums.commentcamarche.net/forum/debian-174">Forum Debian</a>
- Définition de ping ✓ - <a href="https://forums.commentcamarche.net/forum/reseau-5">Forum Réseau</a>
- Ping url ✓ - <a href="https://forums.commentcamarche.net/forum/windows-11">Forum Windows</a>
1 réponse
salut,
j´espere que ca peut t´aider
----------------------------------------------------------------------------
getAllByName
public static InetAddress[] getAllByName(String host)
throws UnknownHostException
Determines all the IP addresses of a host, given the host's name. The host name can either be a machine name, such as "java.sun.com", or a string representing its IP address, such as "206.26.48.100".
If there is a security manager and host is not null and host.length() is not equal to zero, the security manager's checkConnect method is called with the hostname and -1 as its arguments to see if the operation is allowed.
Parameters:
host - the name of the host.
Returns:
an array of all the IP addresses for a given host name.
Throws:
UnknownHostException - if no IP address for the host could be found.
SecurityException - if a security manager exists and its checkConnect method doesn't allow the operation.
See Also:
SecurityManager.checkConnect(java.lang.String, int)
-------------------------------------------------------------------------
j´espere que ca peut t´aider
----------------------------------------------------------------------------
getAllByName
public static InetAddress[] getAllByName(String host)
throws UnknownHostException
Determines all the IP addresses of a host, given the host's name. The host name can either be a machine name, such as "java.sun.com", or a string representing its IP address, such as "206.26.48.100".
If there is a security manager and host is not null and host.length() is not equal to zero, the security manager's checkConnect method is called with the hostname and -1 as its arguments to see if the operation is allowed.
Parameters:
host - the name of the host.
Returns:
an array of all the IP addresses for a given host name.
Throws:
UnknownHostException - if no IP address for the host could be found.
SecurityException - if a security manager exists and its checkConnect method doesn't allow the operation.
See Also:
SecurityManager.checkConnect(java.lang.String, int)
-------------------------------------------------------------------------
gorby
merci, je vais essayer !!