A voir également:
- Faire un ping ???
- Ping port ✓ - Forum Programmation
- Port ping ✓ - Forum Réseau
- T'as du ping expression ✓ - Forum Réseau
- T'as du ping def - Forum Réseau
- Ping défaillance générale - Forum Réseau
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)
-------------------------------------------------------------------------
30 avril 2002 à 12:03