updates fuzzing examples for latest policy-refactor build

This commit is contained in:
Peter Thorson
2012-01-13 08:41:55 -06:00
parent e8cd60e3a8
commit d93eeabc4c
2 changed files with 3 additions and 6 deletions

View File

@@ -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:

View File

@@ -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) {