From d93eeabc4c6622be3307ffef19289d70cd599a1c Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Fri, 13 Jan 2012 08:41:55 -0600 Subject: [PATCH] updates fuzzing examples for latest policy-refactor build --- examples/fuzzing_client/fuzzing_client.cpp | 5 ++--- examples/fuzzing_server_tls/fuzzing_server_tls.cpp | 4 +--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/examples/fuzzing_client/fuzzing_client.cpp b/examples/fuzzing_client/fuzzing_client.cpp index f44821a56d..3227cef2b2 100644 --- a/examples/fuzzing_client/fuzzing_client.cpp +++ b/examples/fuzzing_client/fuzzing_client.cpp @@ -81,11 +81,11 @@ public: if (m_minor == 1) { fill_utf8(connection,true); m_start_time = boost::posix_time::microsec_clock::local_time(); - connection->send(m_data,false); + connection->send(m_data,websocketpp::frame::opcode::TEXT); } else if (m_minor == 2) { fill_binary(connection,true); m_start_time = boost::posix_time::microsec_clock::local_time(); - connection->send(m_data,true); + connection->send(m_data,websocketpp::frame::opcode::BINARY); } else { std::cout << " has unknown definition." << std::endl; } @@ -129,7 +129,6 @@ public: // Check whether the echoed data matches exactly m_pass = (msg->get_payload() == m_data); - connection->recycle(msg); this->end(connection); } private: diff --git a/examples/fuzzing_server_tls/fuzzing_server_tls.cpp b/examples/fuzzing_server_tls/fuzzing_server_tls.cpp index 8377d0cf60..a2f2ede185 100644 --- a/examples/fuzzing_server_tls/fuzzing_server_tls.cpp +++ b/examples/fuzzing_server_tls/fuzzing_server_tls.cpp @@ -79,7 +79,7 @@ public: // start timer start_time = boost::posix_time::microsec_clock::local_time(); // send message - connection->send("abcd",true); + connection->send("abcd"); // stop } @@ -103,8 +103,6 @@ public: // stop timer // check if message was valid - - connection->recycle(msg); } void http(connection_ptr connection) {