[C#] DarkOrbit - Packets Handler

05/06/2012 09:24 SekhmetPOL#1
Hi community!

I play on UridiumWars (old Darkorbit - old packets etc.)
I write bot in C#. I write login(work), but I analyze UDOBOT and i have a problem.

I found function:
Code:
void PacketHandler
She takes the arguments:
Code:
Socket ^hSocket, String ^packet
I have socket, but i don't what's going on with packet.
When you call the function:
Code:
PacketHandler(hSocket,p);
Where:
Code:
String ^p = gcnew String(L"");
And i don't understand that.
String p isn't never declared(without up).
Func use "Split(|)" but string is empty o.0.

UDOBot source:
Code:
http://www.2shared.com/file/Fdf7s-uK/UDOBot_v51.html
from [Only registered and activated users can see links. Click Here To Register...]


All func:


Thanks :)
07/12/2012 16:03 kissein#2
Quote:
And i don't understand that.
String p isn't never declared(without up).
Func use "Split(|)" but string is empty o.0.
The caret ("^") indicates that the declared variable is a handle to a C++/CLI managed object, an object on the managed heap.