71 |
* Sets an integer field in the specified object. |
* Sets an integer field in the specified object. |
72 |
*/ |
*/ |
73 |
static void |
static void |
74 |
_javanet_set_int_field(JNIEnv *env, jobject obj, char *class, char *field, |
_javanet_set_int_field(JNIEnv *env, jobject obj, |
75 |
|
const char *class, const char *field, |
76 |
int val) |
int val) |
77 |
{ |
{ |
78 |
jclass cls; |
jclass cls; |
790 |
} |
} |
791 |
|
|
792 |
/* Accept the connection */ |
/* Accept the connection */ |
793 |
while (result != TARGET_NATIVE_OK) |
do |
794 |
{ |
{ |
795 |
TARGET_NATIVE_NETWORK_SOCKET_ACCEPT(fd,newfd,result); |
TARGET_NATIVE_NETWORK_SOCKET_ACCEPT(fd,newfd,result); |
796 |
if (result != TARGET_NATIVE_OK |
if (result != TARGET_NATIVE_OK |
802 |
return; |
return; |
803 |
} |
} |
804 |
} |
} |
805 |
|
while (result != TARGET_NATIVE_OK); |
806 |
|
|
807 |
/* Populate instance variables */ |
/* Populate instance variables */ |
808 |
_javanet_set_int_field(env, impl, "gnu/java/net/PlainSocketImpl", "native_fd", |
_javanet_set_int_field(env, impl, "gnu/java/net/PlainSocketImpl", "native_fd", |