So many changes. Broken.
[invirt/third/libt4.git] / rsmtest_client.cc
1 // RPC stubs for clients to talk to rsmtest_server
2
3 #include "include/rsmtest_client.h"
4 #include <arpa/inet.h>
5
6 rsmtest_client::rsmtest_client(string dst) {
7     if (!(cl = rpcc::bind_cached(dst)))
8         LOG << "could not bind to " << dst;
9 }
10
11 rsm_test_protocol::status rsmtest_client::net_repair(int heal) {
12     rsm_test_protocol::status r = rsm_test_protocol::ERR;
13     VERIFY (cl->call(rsm_test_protocol::net_repair, r, heal) == rsm_test_protocol::OK);
14     return r;
15 }
16
17 rsm_test_protocol::status rsmtest_client::breakpoint(int b) {
18     rsm_test_protocol::status r = rsm_test_protocol::ERR;
19     VERIFY (cl->call(rsm_test_protocol::breakpoint, r, b) == rsm_test_protocol::OK);
20     return r;
21 }