Lines Matching defs:env
32 extern int parse(JNIEnv *env, jstring jAddress, int port, sockaddr_storage *ss);
38 jint create(JNIEnv *env, jobject thiz, jstring jAddress)
40 env->SetIntField(thiz, gSocket, -1);
43 if (parse(env, jAddress, 0, &ss) < 0) {
52 jniThrowException(env, "java/net/SocketException", strerror(errno));
61 env->SetIntField(thiz, gSocket, socket);
78 env->SetIntField(thiz, gSocket, socket);
84 jniThrowException(env, "java/net/SocketException", strerror(errno));
89 void close(JNIEnv *env, jobject thiz)
91 int socket = env->GetIntField(thiz, gSocket);
93 env->SetIntField(thiz, gSocket, -1);
103 int registerRtpStream(JNIEnv *env)
106 if ((clazz = env->FindClass("android/net/rtp/RtpStream")) == NULL ||
107 (gSocket = env->GetFieldID(clazz, "mSocket", "I")) == NULL ||
108 env->RegisterNatives(clazz, gMethods, NELEM(gMethods)) < 0) {