diff -r 90bf9049e5eb -r 2e6cbacafdc7 sources/network/rconsession.cpp --- a/sources/network/rconsession.cpp Wed Jan 27 19:28:18 2021 +0200 +++ b/sources/network/rconsession.cpp Wed Jan 27 19:32:55 2021 +0200 @@ -80,7 +80,7 @@ // ------------------------------------------------------------------------------------------------- // -bool RCONSession::send(const ByteArray& packet) +bool RCONSession::send(const std::vector& packet) { std::stringstream errors; const bool result = m_socket.send(m_address, packet, errors); @@ -134,7 +134,7 @@ // ------------------------------------------------------------------------------------------------- // -void RCONSession::handlePacket(ByteArray& message) +void RCONSession::handlePacket(std::vector& message) { Bytestream stream(message); @@ -299,7 +299,7 @@ void RCONSession::sendPassword() { m_interface->print("Authenticating...\n"); - ByteArray message; + std::vector message; Bytestream stream(message); stream.writeByte(CLRC_PASSWORD); stream.writeString(md5((m_salt + m_password).data())); @@ -338,7 +338,7 @@ if (m_state != RCON_CONNECTED or commandString.empty()) return false; - ByteArray message; + std::vector message; Bytestream stream(message); stream.writeByte(CLRC_COMMAND); stream.writeString(commandString); @@ -381,7 +381,7 @@ { if (m_serverProtocol >= 4) { - ByteArray message; + std::vector message; Bytestream stream(message); stream.writeByte(CLRC_TABCOMPLETE); stream.writeString(part);