< prev index next >

src/java.base/share/native/libnet/net_util.h

Print this page




  90 /* PlainSocketImpl fields */
  91 extern jfieldID psi_timeoutID;
  92 extern jfieldID psi_fdID;
  93 extern jfieldID psi_addressID;
  94 extern jfieldID psi_portID;
  95 extern jfieldID psi_localportID;
  96 
  97 /* DatagramPacket fields */
  98 extern jfieldID dp_addressID;
  99 extern jfieldID dp_portID;
 100 extern jfieldID dp_bufID;
 101 extern jfieldID dp_offsetID;
 102 extern jfieldID dp_lengthID;
 103 extern jfieldID dp_bufLengthID;
 104 
 105 /* Inet6Address fields */
 106 extern jclass ia6_class;
 107 extern jfieldID ia6_holder6ID;
 108 extern jfieldID ia6_ipaddressID;
 109 extern jfieldID ia6_scopeidID;

 110 extern jfieldID ia6_scopeidsetID;
 111 extern jfieldID ia6_scopeifnameID;
 112 extern jmethodID ia6_ctrID;
 113 
 114 /************************************************************************
 115  *  Utilities
 116  */
 117 JNIEXPORT void JNICALL Java_java_net_InetAddress_init(JNIEnv *env, jclass cls);
 118 JNIEXPORT void JNICALL Java_java_net_Inet4Address_init(JNIEnv *env, jclass cls);
 119 JNIEXPORT void JNICALL Java_java_net_Inet6Address_init(JNIEnv *env, jclass cls);
 120 JNIEXPORT void JNICALL Java_java_net_NetworkInterface_init(JNIEnv *env, jclass cls);
 121 
 122 JNIEXPORT void JNICALL NET_ThrowNew(JNIEnv *env, int errorNum, char *msg);
 123 
 124 void NET_ThrowCurrent(JNIEnv *env, char *msg);
 125 
 126 jfieldID NET_GetFileDescriptorID(JNIEnv *env);
 127 
 128 JNIEXPORT jint JNICALL ipv4_available();
 129 JNIEXPORT jint JNICALL ipv6_available();




  90 /* PlainSocketImpl fields */
  91 extern jfieldID psi_timeoutID;
  92 extern jfieldID psi_fdID;
  93 extern jfieldID psi_addressID;
  94 extern jfieldID psi_portID;
  95 extern jfieldID psi_localportID;
  96 
  97 /* DatagramPacket fields */
  98 extern jfieldID dp_addressID;
  99 extern jfieldID dp_portID;
 100 extern jfieldID dp_bufID;
 101 extern jfieldID dp_offsetID;
 102 extern jfieldID dp_lengthID;
 103 extern jfieldID dp_bufLengthID;
 104 
 105 /* Inet6Address fields */
 106 extern jclass ia6_class;
 107 extern jfieldID ia6_holder6ID;
 108 extern jfieldID ia6_ipaddressID;
 109 extern jfieldID ia6_scopeidID;
 110 extern jfieldID ia6_cachedscopeidID;
 111 extern jfieldID ia6_scopeidsetID;
 112 extern jfieldID ia6_scopeifnameID;
 113 extern jmethodID ia6_ctrID;
 114 
 115 /************************************************************************
 116  *  Utilities
 117  */
 118 JNIEXPORT void JNICALL Java_java_net_InetAddress_init(JNIEnv *env, jclass cls);
 119 JNIEXPORT void JNICALL Java_java_net_Inet4Address_init(JNIEnv *env, jclass cls);
 120 JNIEXPORT void JNICALL Java_java_net_Inet6Address_init(JNIEnv *env, jclass cls);
 121 JNIEXPORT void JNICALL Java_java_net_NetworkInterface_init(JNIEnv *env, jclass cls);
 122 
 123 JNIEXPORT void JNICALL NET_ThrowNew(JNIEnv *env, int errorNum, char *msg);
 124 
 125 void NET_ThrowCurrent(JNIEnv *env, char *msg);
 126 
 127 jfieldID NET_GetFileDescriptorID(JNIEnv *env);
 128 
 129 JNIEXPORT jint JNICALL ipv4_available();
 130 JNIEXPORT jint JNICALL ipv6_available();


< prev index next >