updates interrupt functionality to latest API spec

This commit is contained in:
Peter Thorson committed 2013-01-06 09:59:38 -06:00
1 parent 5949c58d2e
commit 05f9faebf5
5 files changed
+30 -24

No files matched your search

+6 -4
View File
@@ -256,19 +256,21 @@ void connection<config>::close(const close::status::value code,
template <typename config>
lib::error_code connection<config>::interrupt() {
std::cout << "connection::interrupt" << std::endl;
/*return transport_type::inturrupt(
return transport_type::interrupt(
lib::bind(
&type::handle_inturrupt,
&type::handle_interrupt,
type::shared_from_this()
)
);*/
);
return lib::error_code();
}
template <typename config>
void connection<config>::handle_interrupt() {
m_handler->on_interrupt(type::shared_from_this());
if (m_interrupt_handler) {
m_interrupt_handler(m_connection_hdl);
}
}