/[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.12 by mkoch, Tue Jul 29 15:50:20 2003 UTC revision 1.13 by mark, Sun Nov 23 03:11:40 2003 UTC
# Line 473  _javanet_create(JNIEnv *env, jobject thi Line 473  _javanet_create(JNIEnv *env, jobject thi
473      }      }
474            
475    if (stream)    if (stream)
476      _javanet_set_int_field(env, this, "java/net/PlainSocketImpl",      _javanet_set_int_field(env, this, "gnu/java/net/PlainSocketImpl",
477                             "native_fd", fd);                             "native_fd", fd);
478    else    else
479      _javanet_set_int_field(env, this, "java/net/PlainDatagramSocketImpl",      _javanet_set_int_field(env, this, "gnu/java/net/PlainDatagramSocketImpl",
480                             "native_fd", fd);                             "native_fd", fd);
481  #else /* not WITHOUT_NETWORK */  #else /* not WITHOUT_NETWORK */
482  #endif /* not WITHOUT_NETWORK */  #endif /* not WITHOUT_NETWORK */
# Line 505  _javanet_close(JNIEnv *env, jobject this Line 505  _javanet_close(JNIEnv *env, jobject this
505    TARGET_NATIVE_NETWORK_SOCKET_CLOSE(fd,result);    TARGET_NATIVE_NETWORK_SOCKET_CLOSE(fd,result);
506    
507    if (stream)    if (stream)
508      _javanet_set_int_field(env, this, "java/net/PlainSocketImpl",      _javanet_set_int_field(env, this, "gnu/java/net/PlainSocketImpl",
509                             "native_fd", -1);                             "native_fd", -1);
510    else    else
511      _javanet_set_int_field(env, this, "java/net/PlainDatagramSocketImpl",      _javanet_set_int_field(env, this, "gnu/java/net/PlainDatagramSocketImpl",
512                             "native_fd", -1);                             "native_fd", -1);
513  #else /* not WITHOUT_NETWORK */  #else /* not WITHOUT_NETWORK */
514  #endif /* not WITHOUT_NETWORK */  #endif /* not WITHOUT_NETWORK */
# Line 798  _javanet_accept(JNIEnv *env, jobject thi Line 798  _javanet_accept(JNIEnv *env, jobject thi
798      }      }
799    
800    /* Populate instance variables */    /* Populate instance variables */
801    _javanet_set_int_field(env, impl, "java/net/PlainSocketImpl", "native_fd",    _javanet_set_int_field(env, impl, "gnu/java/net/PlainSocketImpl", "native_fd",
802                           newfd);                           newfd);
803    
804    if ((*env)->ExceptionOccurred(env))    if ((*env)->ExceptionOccurred(env))

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

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