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 sa...@apache.org on 2004/09/21 05:44:33 UTC

cvs commit: ws-axis/c/tests/client/threadSafe Client.cpp

samisa      2004/09/20 20:44:33

  Modified:    c/tests/client/threadSafe Client.cpp
  Log:
  Cleaned up the code removing comments
  
  Revision  Changes    Path
  1.8       +6 -12     ws-axis/c/tests/client/threadSafe/Client.cpp
  
  Index: Client.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/threadSafe/Client.cpp,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- Client.cpp	3 Aug 2004 04:18:57 -0000	1.7
  +++ Client.cpp	21 Sep 2004 03:44:33 -0000	1.8
  @@ -37,6 +37,8 @@
   #define MACRO_NUM_THREADS 4*1
   int NUM_THREADS = MACRO_NUM_THREADS;
   
  +extern "C" int initialize_module (int bServer);
  +extern "C" int uninitialize_module ();
   
   extern "C" STORAGE_CLASS_INFO void initializeLibrary(void);
   const char *server = "localhost";
  @@ -62,6 +64,7 @@
       else
   	ws = (InteropTestPortType *) arg;
   
  +    ws->setTransportTimeout(10);
   
       //printf("invoking echoString...\n");
       //testing echoString 
  @@ -223,20 +226,12 @@
       }
   
       InteropTestPortType *ws = NULL;;
  -    /*if (argc > 3)
  -    {
  -	printf("Usage :\n %s <server> <port>\n\n", argv[0]);
  -	printf("Sending Requests to Server http://%s:%s ........\n\n", server,
  -	       port);
  -
  -	//sprintf(endpoint, "http://%s:%s/axis/base", server, port);
  -	//endpoint for Axis Java sample
  -	sprintf(endpoint, "http://%s:%s/axis/services/echo", server, port);
  -	ws = new InteropTestPortType(endpoint);
  -    }*/
  +    /*
       sprintf(endpoint, "http://%s:%s/axis/services/echo", server, port);
       ws = new InteropTestPortType(endpoint); //Samisa: this is an ugly hack to init the LibWWW lib
       ws = NULL; 
  +    */
  +
       pthread_t thread[NUM_THREADS];
       pthread_attr_t attr;
       int rc, t, status = 0;
  @@ -249,7 +244,6 @@
       {
   	printf("Creating thread %d\n", t);
   	rc = pthread_create(&thread[t], &attr, run, (void*)ws);
  -//	rc = pthread_join(thread[t], (void **)&status);
   	if (rc)
   	{
   	    printf("ERROR; return code from pthread_create() is %d\n", rc);