Code example for SocketException

Methods: initCause

0
      { 
        setOption(nfd.getNativeFD(), CP_IP_TTL, ttl);
      } 
    catch (IOException ioe)
      { 
        SocketException se = new SocketException();
        se.initCause(ioe);
        throw se;
      } 
  } 
 
  public int getTimeToLive() 
    throws SocketException 
  { 
    try 
      { 
        return getOption(nfd.getNativeFD(), CP_IP_TTL);
      } 
    catch (IOException ioe)
      { 
        SocketException se = new SocketException();