summaryrefslogtreecommitdiffstats
path: root/src/rpc-server/trex_rpc_req_resp_server.h
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2015-09-16 16:22:48 +0300
committerimarom <imarom@cisco.com>2015-09-16 16:22:48 +0300
commitdd99c3890d3bb7b4aab833927e85648cd6e86c85 (patch)
tree35712a3a46eab3cde24fbe06ca6426ed351e0e41 /src/rpc-server/trex_rpc_req_resp_server.h
parent54f8323b3938bf4ab672cde01a06711bfc522a2e (diff)
added many tests to the RPC server
also, few tweaks for handling RPC server errors
Diffstat (limited to 'src/rpc-server/trex_rpc_req_resp_server.h')
-rw-r--r--src/rpc-server/trex_rpc_req_resp_server.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rpc-server/trex_rpc_req_resp_server.h b/src/rpc-server/trex_rpc_req_resp_server.h
index f12d0540..7c1d66d1 100644
--- a/src/rpc-server/trex_rpc_req_resp_server.h
+++ b/src/rpc-server/trex_rpc_req_resp_server.h
@@ -39,9 +39,11 @@ protected:
void _stop_rpc_thread();
private:
+
void handle_request(const std::string &request);
+ void handle_server_error(const std::string &specific_err);
- static const int RPC_MAX_MSG_SIZE = 2048;
+ static const int RPC_MAX_MSG_SIZE = (20 * 1024);
void *m_context;
void *m_socket;
uint8_t m_msg_buffer[RPC_MAX_MSG_SIZE];