Documentation of 'org.jgap.util.NetworkKit' Java class
NetworkKit
org.jgap.util

Class NetworkKit



  • public final class NetworkKit
    extends java.lang.Object
    Houses network related functionality.
    Since:
    2.4
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String getLocalHostName() 
      static java.lang.String getLocalIPAddress() 
      static java.lang.String getMACAddress()
      Taken and adapted from UUID.
      static void main(java.lang.String[] args) 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getLocalIPAddress

        public static java.lang.String getLocalIPAddress()
                                                  throws java.net.UnknownHostException
        Returns:
        IP address string in textual presentation
        Throws:
        java.net.UnknownHostException
        Since:
        2.4
      • getLocalHostName

        public static java.lang.String getLocalHostName()
                                                 throws java.net.UnknownHostException
        Returns:
        name of the computer calling this function locally
        Throws:
        java.net.UnknownHostException
        Since:
        2.4
      • getMACAddress

        public static java.lang.String getMACAddress()
        Taken and adapted from UUID.
        Returns:
        MAC address of the current computer.
        Since:
        3.3.3
      • main

        public static void main(java.lang.String[] args)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.