You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by se...@apache.org on 2008/03/08 22:16:33 UTC

svn commit: r635086 - /webservices/axis2/trunk/c/tools/tcpmon/src/tcpmon.c

Author: senaka
Date: Sat Mar  8 13:16:30 2008
New Revision: 635086

URL: http://svn.apache.org/viewvc?rev=635086&view=rev
Log:
Adding Request Identification Support using UUIDs

Modified:
    webservices/axis2/trunk/c/tools/tcpmon/src/tcpmon.c

Modified: webservices/axis2/trunk/c/tools/tcpmon/src/tcpmon.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/tools/tcpmon/src/tcpmon.c?rev=635086&r1=635085&r2=635086&view=diff
==============================================================================
--- webservices/axis2/trunk/c/tools/tcpmon/src/tcpmon.c (original)
+++ webservices/axis2/trunk/c/tools/tcpmon/src/tcpmon.c Sat Mar  8 13:16:30 2008
@@ -17,6 +17,7 @@
  */
 
 #include <axutil_utils.h>
+#include <axutil_uuid_gen.h>
 #include <axutil_error_default.h>
 #include <axutil_log_default.h>
 #include <axutil_thread_pool.h>
@@ -235,6 +236,7 @@
     int format = 0;
     FILE *file;
     char *convert = NULL;
+    char *uuid = NULL;
 
     file = fopen(tcpmon_traffic_log, "a+");
 
@@ -270,6 +272,8 @@
         /* 2 screen */
         printf("\n\n%s\n", "SENDING DATA..");
         printf("/* sending time = %s*/\n", TCPMON_ENTRY_SENT_TIME(entry, env));
+        uuid = axutil_uuid_gen(env);
+        printf("/* message uuid = %s*/\n", uuid);
         printf("---------------------\n");
 
         if (format || TCPMON_ENTRY_GET_SENT_DATA_LENGTH(entry, env) ==
@@ -309,6 +313,8 @@
         fprintf(file, "%s\n", "SENDING DATA..");
         fprintf(file, "/* sending time = %s*/\n",
                 TCPMON_ENTRY_SENT_TIME(entry, env));
+        fprintf(file, "/* message uuid = %s*/\n", uuid);
+        AXIS2_FREE(env->allocator, uuid);
         fprintf(file, "---------------------\n");
 
         convert = axutil_strdup(env, TCPMON_ENTRY_SENT_HEADERS(entry, env));
@@ -481,6 +487,7 @@
     char *plain_buffer = NULL;
     char *formated_buffer = NULL;
     int format = 0;
+    char *uuid = NULL;
 
     format = TCPMON_ENTRY_GET_FORMAT_BIT(entry, env);
 
@@ -504,6 +511,9 @@
         }
         printf("\n\n%s\n", "SENDING DATA..");
         printf("/* sending time = %s*/\n", TCPMON_ENTRY_SENT_TIME(entry, env));
+        uuid = axutil_uuid_gen(env);
+        printf("/* message uuid = %s*/\n", uuid);
+        AXIS2_FREE(env->allocator, uuid);
         printf("---------------------\n");
 
         if (format || TCPMON_ENTRY_GET_SENT_DATA_LENGTH(entry, env) ==



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