问问题
2712 次
2 回答
4
Take a look at the boost documentation. There is a good example.
You need to resolve the ambiguity by your self.
于 2012-05-24T09:03:19.320 回答
0
For those who are still wondering how to implement this:
void(websocketpp::role::server<websocketpp::server>::*f)(uint16_t,size_t) = &websocketpp::role::server<websocketpp::server>::listen;
boost::thread t(f, &endpoint, port, 1); //No need to use boost::bind here
and after that call t.detach() or endpoint.stop() and t.join()
于 2012-07-23T09:23:56.093 回答