Renamed a method that isn't part of the public interface of unmarshall
[invirt/third/libt4.git] / rsmtest_client.cc
1 // RPC stubs for clients to talk to rsmtest_server
2
3 #include "rsmtest_client.h"
4 #include <arpa/inet.h>
5
6 rsmtest_client::rsmtest_client(string dst) : cl(dst) {
7     if (cl.bind() < 0)
8         cout << "rsmtest_client: call bind" << endl;
9 }
10
11 rsm_test_protocol::status rsmtest_client::net_repair(int heal) {
12     rsm_test_protocol::status r;
13     auto ret = (rsm_test_protocol::status)cl.call(rsm_test_protocol::net_repair, r, heal);
14     VERIFY (ret == rsm_test_protocol::OK);
15     return r;
16 }
17
18 rsm_test_protocol::status rsmtest_client::breakpoint(int b) {
19     rsm_test_protocol::status r;
20     auto ret = (rsm_test_protocol::status)cl.call(rsm_test_protocol::breakpoint, r, b);
21     VERIFY (ret == rsm_test_protocol::OK);
22     return r;
23 }