Code example for DatagramSocket

Methods: getSoTimeout

0
     * <p> 
     * @return The timeout in milliseconds of the currently opened socket. 
     ***/ 
    public int getSoTimeout() throws SocketException 
    { 
        return _socket_.getSoTimeout();
    } 
 
 
    /*** 
     * Returns the port number of the open socket on the local host used 
     * for the connection.  If you call this method when the client socket 
     * is not open, a NullPointerException is thrown. 
     * <p> 
     * @return The port number of the open socket on the local host used 
     *         for the connection. 
     ***/ 
    public int getLocalPort() 
    { 
        return _socket_.getLocalPort();
    }