*** empty log message ***
authorSameer Kumar <skumar2@uiuc.edu>
Wed, 2 Feb 2005 16:57:36 +0000 (16:57 +0000)
committerSameer Kumar <skumar2@uiuc.edu>
Wed, 2 Feb 2005 16:57:36 +0000 (16:57 +0000)
examples/converse/ccstest/Makefile
examples/converse/ccstest/server.C [moved from examples/converse/ccstest/server.c with 80% similarity]

index 9d90b223edcf4f6119a409a8aa0e982deed4fddd..7c7a6f05e2007f198d7c85ed0667eddda397e4b0 100644 (file)
@@ -9,8 +9,8 @@ server: server.o
 client: client.o
        $(CHARMC) -o $@ client.o -seq -language c++ -lccs-client
 
-server.o: server.c
-       $(CHARMC) -c server.c -language converse++
+server.o: server.C
+       $(CHARMC) -c server.C -language converse++
 
 client.o: client.C
        $(CHARMC) -c client.C -seq -language c++ 
similarity index 80%
rename from examples/converse/ccstest/server.c
rename to examples/converse/ccstest/server.C
index 9df363ce9ed624c8eb99e3bb5e9d8b4fa81806aa..1f474d03924003b0982a96a8d889df8a5fe3fab2 100644 (file)
@@ -1,6 +1,8 @@
 #include <stdio.h>
 #include "converse.h"
 #include "conv-ccs.h"
+#include <stdlib.h>
+#include <string.h>
 
 void handler(char *msg)
 {
@@ -16,8 +18,8 @@ void handler(char *msg)
 void user_main(int argc, char **argv)
 {
 int i;
-  CcsRegisterHandler("ping2", handler);
-  CcsRegisterHandler("ping", handler);
+  CcsRegisterHandler("ping2", (CmiHandler)handler);
+  CcsRegisterHandler("ping", (CmiHandler)handler);
   CmiPrintf("CCS Handlers registered.  Waiting for net requests...\n");
   
 }