sources/network/rconsession.cpp

changeset 191
2e6cbacafdc7
parent 190
90bf9049e5eb
child 195
be953e1621d9
child 198
54d64e5a4204
--- 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<unsigned char>& 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<unsigned char>& message)
 {
 	Bytestream stream(message);
 
@@ -299,7 +299,7 @@
 void RCONSession::sendPassword()
 {
 	m_interface->print("Authenticating...\n");
-	ByteArray message;
+	std::vector<unsigned char> 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<unsigned char> message;
 	Bytestream stream(message);
 	stream.writeByte(CLRC_COMMAND);
 	stream.writeString(commandString);
@@ -381,7 +381,7 @@
 {
 	if (m_serverProtocol >= 4)
 	{
-		ByteArray message;
+		std::vector<unsigned char> message;
 		Bytestream stream(message);
 		stream.writeByte(CLRC_TABCOMPLETE);
 		stream.writeString(part);

mercurial