axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From din...@apache.org
Subject svn commit: r558622 - in /webservices/axis2/trunk/c/src/core/transport/tcp: receiver/tcp_worker.c sender/tcp_transport_sender.c server/simple_tcp_server/tcp_receiver.c
Date Mon, 23 Jul 2007 06:29:41 GMT
Author: dinesh
Date: Sun Jul 22 23:29:40 2007
New Revision: 558622

URL: http://svn.apache.org/viewvc?view=rev&rev=558622
Log:
added free functions

Modified:
    webservices/axis2/trunk/c/src/core/transport/tcp/receiver/tcp_worker.c
    webservices/axis2/trunk/c/src/core/transport/tcp/sender/tcp_transport_sender.c
    webservices/axis2/trunk/c/src/core/transport/tcp/server/simple_tcp_server/tcp_receiver.c

Modified: webservices/axis2/trunk/c/src/core/transport/tcp/receiver/tcp_worker.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/tcp/receiver/tcp_worker.c?view=diff&rev=558622&r1=558621&r2=558622
==============================================================================
--- webservices/axis2/trunk/c/src/core/transport/tcp/receiver/tcp_worker.c (original)
+++ webservices/axis2/trunk/c/src/core/transport/tcp/receiver/tcp_worker.c Sun Jul 22 23:29:40
2007
@@ -31,6 +31,7 @@
 #include <axiom_soap.h>
 #include <axiom.h>
 #include <axis2_simple_tcp_svr_conn.h>
+
 struct axis2_tcp_worker
 {
     axis2_conf_ctx_t *conf_ctx;

Modified: webservices/axis2/trunk/c/src/core/transport/tcp/sender/tcp_transport_sender.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/tcp/sender/tcp_transport_sender.c?view=diff&rev=558622&r1=558621&r2=558622
==============================================================================
--- webservices/axis2/trunk/c/src/core/transport/tcp/sender/tcp_transport_sender.c (original)
+++ webservices/axis2/trunk/c/src/core/transport/tcp/sender/tcp_transport_sender.c Sun Jul
22 23:29:40 2007
@@ -40,8 +40,6 @@
     int so_timeout;
 }axis2_tcp_transport_sender_impl_t;
 
-#define AXIS2_WS_RM_ANONYMOUS_URL "tcp://docs.oasis-open.org/ws-rx/wsmc/200702/anonymous?id="
-
 #define AXIS2_INTF_TO_IMPL(transport_sender)    \
     ((axis2_tcp_transport_sender_impl_t *)      \
      (transport_sender))

Modified: webservices/axis2/trunk/c/src/core/transport/tcp/server/simple_tcp_server/tcp_receiver.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/tcp/server/simple_tcp_server/tcp_receiver.c?view=diff&rev=558622&r1=558621&r2=558622
==============================================================================
--- webservices/axis2/trunk/c/src/core/transport/tcp/server/simple_tcp_server/tcp_receiver.c
(original)
+++ webservices/axis2/trunk/c/src/core/transport/tcp/server/simple_tcp_server/tcp_receiver.c
Sun Jul 22 23:29:40 2007
@@ -144,12 +144,12 @@
     axis2_tcp_server_impl_t *server_impl = NULL;
     AXIS2_ENV_CHECK(env, void);
     server_impl = AXIS2_INTF_TO_IMPL(server);
-/*     if (server_impl->svr_thread) */
-/*     { */
-/*         axis2_tcp_svr_thread_destroy(server_impl->svr_thread, env); */
-/*         axis2_tcp_svr_thread_free(server_impl->svr_thread, env); */
-/*         server_impl->svr_thread = NULL; */
-/*     } */
+    if (server_impl->svr_thread)
+    {
+        axis2_tcp_svr_thread_destroy(server_impl->svr_thread, env);
+        axis2_tcp_svr_thread_free(server_impl->svr_thread, env);
+        server_impl->svr_thread = NULL;
+    }
 
     if (server_impl->conf_ctx_private)
     {
@@ -234,11 +234,11 @@
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
     AXIS2_LOG_INFO(env->log, "Terminating TCP server thread");
-/*     if (AXIS2_INTF_TO_IMPL(server)->svr_thread) */
-/*     { */
-/*         axis2_tcp_svr_thread_destroy(AXIS2_INTF_TO_IMPL(server)->svr_thread, */
-/*                 env); */
-/*     } */
+    if (AXIS2_INTF_TO_IMPL(server)->svr_thread)
+    {
+        axis2_tcp_svr_thread_destroy(AXIS2_INTF_TO_IMPL(server)->svr_thread,
+                env);
+    }
     AXIS2_LOG_INFO(env->log, "Successfully terminated  TCP server"
             " thread");
     return AXIS2_SUCCESS;
@@ -288,14 +288,14 @@
     axis2_tcp_server_impl_t *server_impl = NULL;
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     server_impl = AXIS2_INTF_TO_IMPL(server);
-/*     if (! server_impl->svr_thread) */
-/*     { */
-/*         return AXIS2_FALSE; */
-/*     } */
-/*     else */
-/*     { */
-/*         return axis2_tcp_svr_thread_is_running(server_impl->svr_thread, env); */
-/*     } */
+    if (! server_impl->svr_thread)
+    {
+        return AXIS2_FALSE;
+    }
+    else
+    {
+        return axis2_tcp_svr_thread_is_running(server_impl->svr_thread, env);
+    }
     return AXIS2_FALSE;
 }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message