Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 13:04

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Tutorial: Introduction to Packets

Discussion on Tutorial: Introduction to Packets within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old 11/20/2024, 18:16   #16
 
elite*gold: 0
Join Date: Sep 2022
Posts: 10
Received Thanks: 1
Quote:
Originally Posted by Spirited View Post
You shouldn't hit any limit under normal circumstances going server -> client. The client has a capped length for its send buffer, though. I think it's around 1024 bytes (or something pretty small). So sometimes, you'll get a fragment of a message rather than the full message. Your socket system needs to read the length of the message from offset zero, check the length of the read from the socket, and make sure it's got the full message. Else, it needs to read more from the socket.

If you'd like an example, then Comet has a socket system that handles this already. It first decrypts the bytes, and then it splits the buffer up into multiple complete messages (leaving incomplete messages in the buffer for the next read):




This gets more complicated if you have to handle the DH key exchange in patches 5018+, because that sometimes gets cut off as well. You also have to consider the length of the 8-byte footer in the message when calculating the expected length. Comet has an example of handling that, too:



Thanks so much.
wazdzf is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Release] +5500 Packets structure , client/packets constants
10/07/2012 - CO2 PServer Guides & Releases - 10 Replies
edit : if u know nothing about packets go to this post first explaining what is packets , and explaining a packet with details and everything http://www.elitepvpers.com/forum/co2-pserver-disc ussions-questions/2162344-packets-packets-packets. html#post19074533 i start making my very own packet structure to use them on my new proxy but i thought of ripping them from the source so yeah the following packets is ripped of trinity base source right now im just providing the packets structure...
Packets packets packets...
10/06/2012 - CO2 Private Server - 13 Replies
I have been struggling to understand what is a Packet how could i create one with the data i want then send it to my server So please any one tell if as example i want to send some info from my client to my server, then handle them from the server how could i do that : i have my socket server, also i don't wanna copy and paste codes i want to UNDERSTAND. My PacketReader.cs
[REQUEST] packets send list , or anyway to sniff send packets
08/10/2012 - Kal Online - 16 Replies
hey everyone , as mentioned , i wanna know if anyone got a complete send packets lists or anyway i can sniff send packets , thanks in advance
[Packets] Wie änder ich flyff packets?
07/16/2011 - Flyff Private Server - 19 Replies
HeyHo, Ich würde sehr gerne wissen wie man die Flyff Packets ändert... ich denke mal Zahlen ändern werden nicht ausreichen oder?
[TUTORIAL] Starter friendly tutorial to searching for Nuke casting time [TUTORIAL]
02/09/2011 - 9Dragons - 12 Replies
If you already have Cheat Engine and know how to use it, skip to part 4 of the tutorial. 1. Introduction This forum has helped me quite a bit, so I decided to give something back :) Now I've noticed there are quite a few who ask for nuke casting time hacks / address', and I've also noticed, that there are quite a few who are REALLY annoyed with these questions, so I decided to write this so both sides can benefit from it. 2. Getting started First off, you need to have Cheat Engine...



All times are GMT +1. The time now is 13:06.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.