Code example for PortUnreachableException

0
   if (isSocketErrAddrNotAvail0(res) != 0)
    throw new BindException(message);
   if (isSocketErrHostUnreach0(res) != 0)
    throw new NoRouteToHostException(message);
   if (isSocketErrResetConn0(res) != 0)
    throw new PortUnreachableException(message);
   throw new SocketException(message);
  } 
 } 
 
 private static native int socketsInit0(); 
 
 private static native int isSocketErrAddrNotAvail0(int res);
 
 private static native int isSocketErrConnInProgress0(int res);
 
 private static native int isSocketErrConnRefused0(int res);
 
 private static native int isSocketErrConnected0(int res);