Core/Bnet: Implement a way to handle turn protobuf service calls into async requests

This commit is contained in:
Shauren
2017-09-21 21:59:59 +02:00
parent 115dffde98
commit 3269a68427
52 changed files with 1527 additions and 1044 deletions

View File

@@ -26,7 +26,7 @@ Battlenet::Services::Connection::Connection(Session* session) : ConnectionServic
{
}
uint32 Battlenet::Services::Connection::HandleConnect(connection::v1::ConnectRequest const* request, connection::v1::ConnectResponse* response)
uint32 Battlenet::Services::Connection::HandleConnect(connection::v1::ConnectRequest const* request, connection::v1::ConnectResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& /*continuation*/)
{
if (request->has_client_id())
response->mutable_client_id()->CopyFrom(request->client_id());