Start cleaning up some of the bastardization.

This commit is contained in:
JoelKatz
2013-01-24 21:04:42 -08:00
parent c04b76e1ca
commit 938357b7ae
2 changed files with 35 additions and 26 deletions

View File

@@ -845,32 +845,15 @@ void server<endpoint>::connection<connection_type>::write_response() {
m_endpoint.m_alog->at(log::alevel::DEBUG_HANDSHAKE) << raw << log::endl;
if (m_connection.get_socket().isSecure())
{
boost::asio::async_write(
m_connection.get_socket().SSLSocket(),
//boost::asio::buffer(raw),
buffer,
boost::bind(
&type::handle_write_response,
m_connection.shared_from_this(),
boost::asio::placeholders::error
)
);
}
else
{
boost::asio::async_write(
m_connection.get_socket().PlainSocket(),
//boost::asio::buffer(raw),
buffer,
boost::bind(
&type::handle_write_response,
m_connection.shared_from_this(),
boost::asio::placeholders::error
)
);
}
m_connection.get_socket().async_write(
//boost::asio::buffer(raw),
buffer,
boost::bind(
&type::handle_write_response,
m_connection.shared_from_this(),
boost::asio::placeholders::error
)
);
}
template <class endpoint>