sources/network/rconsession.cpp

changeset 11
cffa2777d917
parent 10
3874575d924d
child 12
8d0d1b368de0
--- a/sources/network/rconsession.cpp	Fri Dec 12 00:55:51 2014 +0200
+++ b/sources/network/rconsession.cpp	Fri Dec 12 01:37:04 2014 +0200
@@ -87,14 +87,12 @@
 METHOD
 RCONSession::handle_packet (Bytestream& packet, const IPAddress& from) -> void
 {
-	print ("Handling packet of %1 bytes\n", packet.written_length());
+	print ("Processing packet of %1 bytes\n", packet.written_length());
 	bool ok = true;
 
 	while (packet.bytes_left() > 0)
 	{
-		print ("%1/%2 bytes left\n", packet.bytes_left(), packet.written_length());
 		int header = packet.read_byte (&ok);
-		print ("recieved HEADER with %1\n", header);
 
 		switch (ServerResponse (header))
 		{
@@ -195,6 +193,7 @@
 	print ("sending password...\n");
 	Bytestream packet;
 	packet.write_byte (CLRC_PASSWORD);
+	print ("password: %1\nsalt: %2\nhashed password: %3\n", m_password, m_salt, (m_salt + m_password).md5());
 	packet.write_string ((m_salt + m_password).md5());
 	send (packet);
 	bump_last_ping();

mercurial