eWON JTK
javax.microedition.io

Interface ServerSocketConnection

    • Method Detail

      • getLocalAddress

        String getLocalAddress()
                               throws IOException
        Gets the local address to which the socket is bound.

        The host address(IP number) that can be used to connect to this end of the socket connection from an external system. Since IP addresses may be dynamically assigned, a remote application will need to be robust in the face of IP number reasssignment.

        The local hostname (if available) can be accessed from System.getProperty("microedition.hostname")

        Returns:
        the local address to which the socket is bound.
        Throws:
        IOException - if the connection was closed
        See Also:
        SocketConnection
      • getLocalPort

        int getLocalPort()
                         throws IOException
        Returns the local port to which this socket is bound.
        Returns:
        the local port number to which this socket is connected.
        Throws:
        IOException - if the connection was closed
        See Also:
        SocketConnection

www.eWON.biz: Your Eyes Watching Over Net