Rolled handle infrastructure into rpcc.
[invirt/third/libt4.git] / rpc / rpctest.cc
index fb170e7..f8395e9 100644 (file)
@@ -7,11 +7,10 @@
 #include <getopt.h>
 #include <unistd.h>
 #include <string.h>
+#include "threaded_log.h"
 
 #define NUM_CL 2
 
-char log_thread_prefix = 'r';
-
 static rpcs *server;  // server rpc object
 static rpcc *clients[NUM_CL];  // client rpc object
 static string dst; //server's ip address
@@ -343,6 +342,7 @@ static void failure_test() {
 }
 
 int main(int argc, char *argv[]) {
+    global = new t4_state('r');
 
     setvbuf(stdout, NULL, _IONBF, 0);
     setvbuf(stderr, NULL, _IONBF, 0);