[jbossnative-commits] JBoss Native SVN: r998 - in trunk/sight/native: share and 1 other directory.

jbossnative-commits at lists.jboss.org jbossnative-commits at lists.jboss.org
Mon Sep 10 01:45:27 EDT 2007


Author: mladen.turk at jboss.com
Date: 2007-09-10 01:45:27 -0400 (Mon, 10 Sep 2007)
New Revision: 998

Modified:
   trunk/sight/native/include/sight_local.h
   trunk/sight/native/share/tcpconn.c
   trunk/sight/native/share/udpconn.c
Log:
Added Connection timeout field setters

Modified: trunk/sight/native/include/sight_local.h
===================================================================
--- trunk/sight/native/include/sight_local.h	2007-09-10 05:41:53 UTC (rev 997)
+++ trunk/sight/native/include/sight_local.h	2007-09-10 05:45:27 UTC (rev 998)
@@ -447,6 +447,7 @@
 void         sight_tcpconn_set_remote(SIGHT_STDARGS, jobject);
 void         sight_tcpconn_set_pid(SIGHT_STDARGS, jint);
 void         sight_tcpconn_set_cts(SIGHT_STDARGS, jlong);
+void         sight_tcpconn_set_tmo(SIGHT_STDARGS, jint);
 void         sight_tcpconn_set_state(SIGHT_STDARGS, jint);
 
 /* Prototypes from  udpconn.c */
@@ -455,6 +456,7 @@
 void         sight_udpconn_set_local(SIGHT_STDARGS, jobject);
 void         sight_udpconn_set_pid(SIGHT_STDARGS, jint);
 void         sight_udpconn_set_cts(SIGHT_STDARGS, jlong);
+void         sight_udpconn_set_tmo(SIGHT_STDARGS, jint);
 
 
 #ifdef __cplusplus

Modified: trunk/sight/native/share/tcpconn.c
===================================================================
--- trunk/sight/native/share/tcpconn.c	2007-09-10 05:41:53 UTC (rev 997)
+++ trunk/sight/native/share/tcpconn.c	2007-09-10 05:45:27 UTC (rev 998)
@@ -76,6 +76,12 @@
     "J"
 };
 
+J_DECLARE_F_ID(0004) = {
+    NULL,
+    "Timeout",
+    "I"
+};
+
 SIGHT_CLASS_LDEF(TcpConnection)
 {
     if (sight_load_class(_E, &_clazzn))
@@ -84,6 +90,7 @@
     J_LOAD_IFIELD(0001);
     J_LOAD_IFIELD(0002);
     J_LOAD_IFIELD(0003);
+    J_LOAD_IFIELD(0004);
     J_LOAD_METHOD(0000);
     J_LOAD_METHOD(0001);
 
@@ -131,6 +138,11 @@
     SET_IFIELD_J(0003, _O, val);
 }
 
+void sight_tcpconn_set_tmo(SIGHT_STDARGS, jint val)
+{
+    SET_IFIELD_J(0004, _O, val);
+}
+
 void sight_tcpconn_set_state(SIGHT_STDARGS, jint val)
 {
     CALL_METHOD1(0001, _O, val);

Modified: trunk/sight/native/share/udpconn.c
===================================================================
--- trunk/sight/native/share/udpconn.c	2007-09-10 05:41:53 UTC (rev 997)
+++ trunk/sight/native/share/udpconn.c	2007-09-10 05:45:27 UTC (rev 998)
@@ -64,6 +64,12 @@
     "J"
 };
 
+J_DECLARE_F_ID(0003) = {
+    NULL,
+    "Timeout",
+    "I"
+};
+
 SIGHT_CLASS_LDEF(UdpConnection)
 {
     if (sight_load_class(_E, &_clazzn))
@@ -71,6 +77,7 @@
     J_LOAD_IFIELD(0000);
     J_LOAD_IFIELD(0001);
     J_LOAD_IFIELD(0002);
+    J_LOAD_IFIELD(0003);
     J_LOAD_METHOD(0000);
 
     return 0;
@@ -111,3 +118,8 @@
 {
     SET_IFIELD_J(0002, _O, val);
 }
+
+void sight_udpconn_set_tmo(SIGHT_STDARGS, jlong val)
+{
+    SET_IFIELD_J(0003, _O, val);
+}




More information about the jbossnative-commits mailing list