summaryrefslogtreecommitdiffstats
path: root/src/gtest
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2015-08-17 10:45:37 +0300
committerimarom <imarom@cisco.com>2015-08-17 10:45:37 +0300
commitb9c9cb1ca1257d799d82837b3d69b60028291379 (patch)
treecbb3ad7b51d26a5926b3f91f9e6802d58bb9c494 /src/gtest
parent509b68a5cff9503ffffe2e72a2812bb10ca0380f (diff)
draft
Diffstat (limited to 'src/gtest')
-rw-r--r--src/gtest/rpc_test.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gtest/rpc_test.cpp b/src/gtest/rpc_test.cpp
index 0141dec4..8cee0859 100644
--- a/src/gtest/rpc_test.cpp
+++ b/src/gtest/rpc_test.cpp
@@ -31,7 +31,9 @@ using namespace std;
class RpcTest : public testing::Test {
virtual void SetUp() {
- m_rpc = new TrexRpcServerArray(TrexRpcServerArray::RPC_PROT_TCP, 5050);
+ TrexRpcServerConfig cfg = TrexRpcServerConfig(TrexRpcServerConfig::RPC_PROT_TCP, 5050);
+
+ m_rpc = new TrexRpcServer(cfg);
m_rpc->start();
m_context = zmq_ctx_new ();
@@ -57,7 +59,7 @@ public:
return string(buffer, len);
}
- TrexRpcServerArray *m_rpc;
+ TrexRpcServer *m_rpc;
void *m_context;
void *m_socket;
};