sources/network/rconsession.cpp

changeset 158
de7574d292ad
parent 157
42bb29924218
child 159
970d58a01e8b
child 163
5948441a1951
--- a/sources/network/rconsession.cpp	Fri Jul 22 17:50:00 2016 +0300
+++ b/sources/network/rconsession.cpp	Fri Jul 22 17:52:23 2016 +0300
@@ -79,7 +79,7 @@
 
 // -------------------------------------------------------------------------------------------------
 //
-void RCONSession::send(const Vector<unsigned char>& packet)
+void RCONSession::send(const ByteArray& packet)
 {
 	m_socket.send(m_address, packet);
 }
@@ -283,7 +283,7 @@
 void RCONSession::sendPassword()
 {
 	m_interface->print("Authenticating...\n");
-	Vector<unsigned char> message;
+	ByteArray message;
 	Bytestream stream(message);
 	stream.writeByte(CLRC_PASSWORD);
 	stream.writeString((m_salt + m_password).md5());
@@ -322,7 +322,7 @@
 	if (m_state != RCON_CONNECTED or commandString.isEmpty())
 		return false;
 
-	Vector<unsigned char> message;
+	ByteArray message;
 	Bytestream stream(message);
 	stream.writeByte(CLRC_COMMAND);
 	stream.writeString(commandString);
@@ -365,7 +365,7 @@
 {
 	if (m_serverProtocol >= 4)
 	{
-		Vector<unsigned char> message;
+		ByteArray message;
 		Bytestream stream(message);
 		stream.writeByte(CLRC_TABCOMPLETE);
 		stream.writeString(part);

mercurial