src/java.base/unix/native/libnet/ExtendedOptionsImpl.c

Print this page




  71     if (initialized) {
  72         return;
  73     }
  74 
  75     c = (*env)->FindClass(env, "jdk/net/SocketFlow$Status");
  76     CHECK_NULL(c);
  77     sf_status_class = (*env)->NewGlobalRef(env, c);
  78     CHECK_NULL(sf_status_class);
  79 
  80     /* int "fd" field of java.io.FileDescriptor  */
  81 
  82     c = (*env)->FindClass(env, "java/io/FileDescriptor");
  83     CHECK_NULL(c);
  84     sf_fd_fdID = (*env)->GetFieldID(env, c, "fd", "I");
  85     CHECK_NULL(sf_fd_fdID);
  86 
  87 
  88     /* SocketFlow fields */
  89 
  90     c = (*env)->FindClass(env, "jdk/net/SocketFlow");

  91 
  92     /* status */
  93 
  94     sf_status = (*env)->GetFieldID(env, c, "status",
  95                                         "Ljdk/net/SocketFlow$Status;");
  96     CHECK_NULL(sf_status);
  97 
  98     /* priority */
  99 
 100     sf_priority = (*env)->GetFieldID(env, c, "priority", "I");
 101     CHECK_NULL(sf_priority);
 102 
 103     /* bandwidth */
 104 
 105     sf_bandwidth = (*env)->GetFieldID(env, c, "bandwidth", "J");
 106     CHECK_NULL(sf_bandwidth);
 107 
 108     /* Initialize the static enum values */
 109 
 110     sfs_NOSTATUS = getEnumField(env, "NO_STATUS");




  71     if (initialized) {
  72         return;
  73     }
  74 
  75     c = (*env)->FindClass(env, "jdk/net/SocketFlow$Status");
  76     CHECK_NULL(c);
  77     sf_status_class = (*env)->NewGlobalRef(env, c);
  78     CHECK_NULL(sf_status_class);
  79 
  80     /* int "fd" field of java.io.FileDescriptor  */
  81 
  82     c = (*env)->FindClass(env, "java/io/FileDescriptor");
  83     CHECK_NULL(c);
  84     sf_fd_fdID = (*env)->GetFieldID(env, c, "fd", "I");
  85     CHECK_NULL(sf_fd_fdID);
  86 
  87 
  88     /* SocketFlow fields */
  89 
  90     c = (*env)->FindClass(env, "jdk/net/SocketFlow");
  91     CHECK_NULL(c);
  92 
  93     /* status */
  94 
  95     sf_status = (*env)->GetFieldID(env, c, "status",
  96                                         "Ljdk/net/SocketFlow$Status;");
  97     CHECK_NULL(sf_status);
  98 
  99     /* priority */
 100 
 101     sf_priority = (*env)->GetFieldID(env, c, "priority", "I");
 102     CHECK_NULL(sf_priority);
 103 
 104     /* bandwidth */
 105 
 106     sf_bandwidth = (*env)->GetFieldID(env, c, "bandwidth", "J");
 107     CHECK_NULL(sf_bandwidth);
 108 
 109     /* Initialize the static enum values */
 110 
 111     sfs_NOSTATUS = getEnumField(env, "NO_STATUS");