/[classpath]/classpath/native/jni/java-net/javanet.c
ViewVC logotype

Diff of /classpath/native/jni/java-net/javanet.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.18 by mark, Sun Apr 25 16:19:35 2004 UTC revision 1.19 by mark, Tue Oct 26 20:26:03 2004 UTC
# Line 71  exception statement from your version. * Line 71  exception statement from your version. *
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;
# Line 789  _javanet_accept(JNIEnv *env, jobject thi Line 790  _javanet_accept(JNIEnv *env, jobject thi
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
# Line 801  _javanet_accept(JNIEnv *env, jobject thi Line 802  _javanet_accept(JNIEnv *env, jobject thi
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",

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26