المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Packet Structure in C++



C++ Programming
04-04-2009, 12:31 PM
Hi guys,
i don't have much experience in network programming but i want to code a little rcon
tool for quake3 engine-based games like Call of Duty 2 or Call of Duty 4.
After much googling i found out that the rcon protocol of CoD2 has a 4 Byte long header
(0xFF each) and then the code, terminated with "\n".
For the connection i used a Winsock UDP connection.
But when i send something to a server it just responses "disconnect".

Can someone tell me how to create a packet that is needed for this in C++?
Greats Sebi.s