Update of /cvsroot/wpdev/wolfpack/network
In directory sc8-pr-cvs1:/tmp/cvs-serv15450/network
Modified Files:
uopacket.cpp uopacket.h uosocket.cpp
Log Message:
Removed references to STL strings and iostreams.
Index: uopacket.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/network/uopacket.cpp,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -d -r1.36 -r1.37
*** uopacket.cpp 24 Jul 2003 04:03:48 -0000 1.36
--- uopacket.cpp 11 Sep 2003 12:22:25 -0000 1.37
***************
*** 35,39 ****
#include <ctype.h>
- #include <iostream>
/*****************************************************************************
--- 35,38 ----
***************
*** 557,573 ****
0100: 00 00 -- -- -- -- -- -- -- -- -- -- -- -- -- -- : ..
\endverbatim
- */
- void cUOPacket::print( std::ostream* s )
- {
- if ( s )
- (*s) << dump( rawPacket ).data() << std::endl;
- }
-
-
- /*!
- This is a debug method. It will dump a numerical hexa and ascii representation of the packet
- at \a data as well as a right table of offsets and return that as a QString.
- This method behaves just like print method.
- \sa print()
*/
QCString cUOPacket::dump( const QByteArray &data )
--- 556,559 ----
Index: uopacket.h
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/network/uopacket.h,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** uopacket.h 26 Jul 2003 01:10:55 -0000 1.24
--- uopacket.h 11 Sep 2003 12:22:25 -0000 1.25
***************
*** 75,80 ****
static QCString dump( const QByteArray& );
- virtual void print( std::ostream* );
-
// Operators
char& operator []( uint );
--- 75,78 ----
Index: uosocket.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/network/uosocket.cpp,v
retrieving revision 1.284
retrieving revision 1.285
diff -C2 -d -r1.284 -r1.285
*** uosocket.cpp 9 Sep 2003 23:09:31 -0000 1.284
--- uosocket.cpp 11 Sep 2003 12:22:25 -0000 1.285
***************
*** 67,72 ****
#include "../ai.h"
- //#include <conio.h>
- #include <iostream>
#include <stdlib.h>
#include <qhostaddress.h>
--- 67,70 ----
***************
*** 971,978 ****
handleCustomHouseRequest( dynamic_cast< cUORxCustomHouseRequest* >( packet ) ); break;
default:
! {
! packet->print( &cout ); // Dump the packet
! return;
! }
};
}
--- 969,973 ----
handleCustomHouseRequest( dynamic_cast< cUORxCustomHouseRequest* >( packet ) ); break;
default:
! Console::instance()->log( LOG_WARNING, packet->dump( packet->uncompressed() ) );
};
}
|