TeaSpeak-Client/native/serverconnection/src/connection/ProtocolHandlerCommands.cpp

16 lines
428 B
C++
Raw Normal View History

2019-10-26 01:51:40 +02:00
#include "ProtocolHandler.h"
#include "../logger.h"
#include <protocol/buffers.h>
using namespace std;
using namespace tc::connection;
using namespace ts::protocol;
using namespace ts;
void ProtocolHandler::handleCommandInitServer(ts::Command &cmd) {
this->client_id = cmd["aclid"];
this->connection_state = connection_state::CONNECTED;
log_info(category::connection, tr("Received own client id: {}"), this->client_id);
}