-#include <sstream>
-#include <iostream>
-#include <stdio.h>
-
-rsmtest_client::rsmtest_client(std::string dst)
-{
- sockaddr_in dstsock;
- make_sockaddr(dst.c_str(), &dstsock);
- cl = new rpcc(dstsock);
- if (cl->bind() < 0) {
- printf("rsmtest_client: call bind\n");
- }
+rsmtest_client::rsmtest_client(string dst) : cl(dst) {
+ if (cl.bind() < 0)
+ cout << "rsmtest_client: call bind" << endl;