adds ability to retrieve connection_hdl and some docs

This commit is contained in:
Peter Thorson
2013-01-06 08:53:58 -06:00
parent 9253e4fca2
commit d705a805eb

View File

@@ -191,11 +191,26 @@ public:
* The connection handle is a token that can be shared outside the
* WebSocket++ core for the purposes of identifying a connection and
* sending it messages.
*
* @param hdl A connection_hdl that the connection will use to refer
* to itself.
*/
void set_handle(connection_hdl hdl) {
m_connection_hdl = hdl;
}
/// Get Connection Handle
/**
* The connection handle is a token that can be shared outside the
* WebSocket++ core for the purposes of identifying a connection and
* sending it messages.
*
* @return A handle to the connection
*/
connection_hdl get_handle() {
return m_connection_hdl;
}
void set_open_handler(open_handler h) {
m_open_handler = h;
}