summaryrefslogtreecommitdiffstats
path: root/src/gtest/rpc_test.cpp
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2015-10-07 14:57:48 +0200
committerimarom <imarom@cisco.com>2015-10-07 14:57:48 +0200
commit4d53d6e2633caed782067965b1b4422b45dab4a2 (patch)
tree84966bcdb944027ded09c78f57f6de0f991cc1f6 /src/gtest/rpc_test.cpp
parent73574943ae438985f37aae3ea52e9713c55ef62e (diff)
added async publisher to the RPC server
Diffstat (limited to 'src/gtest/rpc_test.cpp')
-rw-r--r--src/gtest/rpc_test.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gtest/rpc_test.cpp b/src/gtest/rpc_test.cpp
index 38d34320..4084b664 100644
--- a/src/gtest/rpc_test.cpp
+++ b/src/gtest/rpc_test.cpp
@@ -42,9 +42,10 @@ protected:
m_verbose = false;
- TrexRpcServerConfig cfg = TrexRpcServerConfig(TrexRpcServerConfig::RPC_PROT_TCP, 5050);
+ TrexRpcServerConfig req_resp_cfg = TrexRpcServerConfig(TrexRpcServerConfig::RPC_PROT_TCP, 5050);
+ TrexRpcServerConfig async_cfg = TrexRpcServerConfig(TrexRpcServerConfig::RPC_PROT_TCP, 5051);
- m_rpc = new TrexRpcServer(cfg);
+ m_rpc = new TrexRpcServer(req_resp_cfg, async_cfg);
m_rpc->start();
m_context = zmq_ctx_new ();