i am using co socket with all socket files which in source to make a server/client apps for for any job like chatting or file transfer .. etc .
now i can connect to server through client .. and i can send byte`s .. but i wanna make the client just like a conquer client ... i mean i want it working with packets not bytes ... i know the packets is a something like decrypted bytes but i wanna explain it like this :
Conquer online Login packet
Code:
#region LoginPacket (1052)
case 1052:
{
if (client.Action == 1)
{
Connect connect = new Connect();
connect.Deserialize(packet);
AppendConnect(connect, client);
}
else
client.Disconnect();
Console.WriteLine("Disconnect 5");
break;
}
#endregion
Code:
byte[] data = new byte[276];
Begin_Send(data);
and here is begin send void
Code:
void Begin_Send(byte[] Message)
{
try
{
ClientSocket.Send(Message);
}
catch (Exception g) { Update_Screen(g.Message); }
}
Code:
ClientSocket = new WinSocket();
but i wanna it handle or contains User id and password if my app needs to login or something like conquer ....
any suggest idea ?
sorry for my bad English ... long time not using it ..






