KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > java > net > Inet4Address

java.net
Class Inet4Address

java.lang.Object
  extended by java.net.InetAddress
      extended by java.net.Inet4Address
All Implemented Interfaces:
Serializable
See Also:
Top Examples, Source Code

public boolean equals(Object obj)
See Also:
InetAddress.getAddress()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public byte[] getAddress()
See Also:
InetAddress
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getHostAddress()
See Also:
InetAddress
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int hashCode()
See Also:
Hashtable, Object.equals(java.lang.Object), InetAddress
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isAnyLocalAddress()
See Also:
InetAddress
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[431]InetAddress::isAnyLocalAddress
By calistoga_water { at } yahoo { dot } com on 2003/10/02 04:21:49  Rate
/// all those fasinating boolean methods. one by one 
 // noter, when you can compile for 64bit int, 
 //this will still be true...ulong is the new 64 
 boolean InetAddress::isAnyLocalAddress (  )  
 #ifdef AF_INET6 
 #else 
 // this is old school; 
  {  return  ( INADDR_ANY ==  ( * ( unsigned long* ) this- > mAddress )  ) ; }   
 #endif  
  
  
 /**** I would like to say...i was stoned when i solved this 
 and what you are getting now is pure thought.... 
 ....and that's real c++ : )   
 ....or real c  ( even k&r )  
 ******b*y*e**/


public boolean isLinkLocalAddress()
See Also:
InetAddress
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isLoopbackAddress()
See Also:
InetAddress
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isMCGlobal()
See Also:
InetAddress
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isMCLinkLocal()
See Also:
InetAddress
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isMCNodeLocal()
See Also:
InetAddress
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isMCOrgLocal()
See Also:
InetAddress
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isMCSiteLocal()
See Also:
InetAddress
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isMulticastAddress()
See Also:
InetAddress
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isSiteLocalAddress()
See Also:
InetAddress
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags