You last visited: Today at 23:15
Advertisement
[Help] Messaging packet version 5630+
Discussion on [Help] Messaging packet version 5630+ within the CO2 Private Server forum part of the Conquer Online 2 category.
02/07/2013, 20:03
#16
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
Are you writing TQServer at the end of the packet?
02/07/2013, 21:04
#17
elite*gold: 0
Join Date: Jun 2009
Posts: 611
Received Thanks: 195
Specifying offsets is easy at small packets, but it tends to be a pain in the *** in very large packets.
02/07/2013, 21:32
#18
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
Quote:
Originally Posted by
diedwarrior
Specifying offsets is easy at small packets, but it tends to be a pain in the *** in very large packets.
Make a parser for it then like you paste the structure in a textfile, let's a program parse that file and spit out the structure with valid c# code.
02/07/2013, 21:45
#19
elite*gold: 0
Join Date: Nov 2010
Posts: 371
Received Thanks: 120
Quote:
Originally Posted by
Super Aids
Are you writing TQServer at the end of the packet?
As you can see in my dump: Yes.
I write it behind every packet, encrypt it and send it to the socket system
02/07/2013, 21:46
#20
elite*gold: 0
Join Date: May 2005
Posts: 1,892
Received Thanks: 920
I much prefer specifying offsets explicitly rather than using a stream, especially when you have a packet with a lot of unknowns.
02/07/2013, 21:49
#21
elite*gold: 0
Join Date: Mar 2012
Posts: 29
Received Thanks: 4
JobvdH you have last packet sniffer 56700+?
02/07/2013, 21:51
#22
elite*gold: 0
Join Date: Nov 2010
Posts: 371
Received Thanks: 120
Ehh no if I would have it wouldn't make this thread heh?
02/08/2013, 00:14
#23
elite*gold: 0
Join Date: Jun 2005
Posts: 692
Received Thanks: 353
Quote:
Originally Posted by
JobvdH
As you can see in my dump: Yes.
I write it behind every packet, encrypt it and send it to the socket system
If I recall, the size written in the packet shouldn't include the TQServer at end. Obviously your buffer needs enough room, but 0x49 should be the size of the packet without the TQServer (0x41).
02/08/2013, 03:01
#24
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
Quote:
Originally Posted by
nTL3fTy
If I recall, the size written in the packet shouldn't include the TQServer at end. Obviously your buffer needs enough room, but 0x49 should be the size of the packet without the TQServer (0x41).
This is correct ^.
02/08/2013, 09:52
#25
elite*gold: 0
Join Date: Nov 2010
Posts: 371
Received Thanks: 120
So that means remove 8 length from the packet.
And when I send the packet to the sockets I should add TQServer and add 8 bytes to the array?
02/08/2013, 11:02
#26
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
Yes.
This is how I do it:
Code:
using (var sendPacket = new DataPacket(new byte[Packet.BufferLength + 8]))
{
sendPacket.WriteBytes(Packet.Copy(), 0);
sendPacket.WriteString("TQServer", sendPacket.BufferLength - 8);
NetworkClient.Send(sendPacket);
}
02/08/2013, 13:32
#27
elite*gold: 28
Join Date: Jun 2010
Posts: 2,226
Received Thanks: 868
You should modify it so you don't have to manually specify +/- 8 in the length for the bytes
Or even just have a method sendPacket.Seal();
Just seems alot less messy imo
02/08/2013, 16:24
#28
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
Quote:
Originally Posted by
_DreadNought_
You should modify it so you don't have to manually specify +/- 8 in the length for the bytes
Or even just have a method sendPacket.Seal();
Just seems alot less messy imo
Doesn't really matter if I do it in a "Seal method" or in the send method.
02/09/2013, 21:06
#29
elite*gold: 28
Join Date: Jun 2010
Posts: 2,226
Received Thanks: 868
Just thought it looks messy lol
02/09/2013, 21:51
#30
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
How do you find 3 lines messy? Or rather 2 lines.
Similar Threads
Which File in source 5630 Containt Ping !
11/21/2012 - CO2 Private Server - 3 Replies
I have 2 source its same !
one of them contain many prob but i want to get the file who contain ping cuz its bad in the another !!
i hope to understand me !!
and am sorry for my bad English lang !!
[B] e*pvp Messaging Tool ## Autopusher coming soon! ## [S] e*gold, PSC, uKash. Paypal
04/25/2012 - Trading - 7 Replies
.
Private Messaging options
07/03/2010 - Technical Support - 2 Replies
Hi guys:mofo:
I've been trying to send PMs to several members but I think my messages are not reaching because whenever i send it, it never shows up on the SEnt Messages link so im guessing i have to enable it or something?:confused:
Thank you if you can help me;):handsdown::D:bandit::):cool::rolleyes:
All times are GMT +2. The time now is 23:16 .