TheNewBoston Channel Rocks ,
Thank you.
Thank you.
No problem, personally I don't like videos for learning programming, because you do not get all details etc. Also he's starting with forms, where I would recommend consoles, because it's easier to understand how a program is build that way.Quote:
TheNewBoston Channel Rocks ,
Thank you.
Yah your right but, i found out he also have guides for other programming language.Quote:
No problem, personally I don't like videos for learning programming, because you do not get all details etc. Also he's starting with forms, where I would recommend consoles, because it's easier to understand how a program is build that way.
Basically you send the encrypt function in the send method to the client, after handling the packets.Quote:
So far so good I feel a bit lost but I'm making progress gotta know how this encryption and decryption stuff works now
i know how everything works basically anyway ill check the thread for details tomorrow if i manage to finish my HW todayQuote:
Basically you send the encrypt function in the send method to the client, after handling the packets.
The decryption is at the receive of a packet.
Take a look at other sources or the link to P4n's thread.
The event on connection is when a client makes a new connection to your server.Quote:
i know how everything works basically anyway ill check the thread for details tomorrow if i manage to finish my HW today
just to make sure that i understood
correct me if im wrong
the global socket wrapper is a wrapper to many socketclients that refer to a the client that some1 is running
the connection event is the 1 where all the authentication stuff is handled
like checking in and disconnection is where the client checks out
in the recieve event the packet which is defined as buffer in this socket system
this buffer should be encrypted then handled
using switch(whatever refers to packet id) if so arent i supposed to define a character in the socketclient after i code the character class
Edit:here is my what ive done till now
[Done] [Working]
SocketSystem [yes] [No idea]
PacketHandler [Base only] [yes(tested)]
PacketReader [yes] [yes]
PacketWriter [yes] [yes]
Enums [yes] [No idea if they r right]
Encryption/Decryption [yes] [yes but i dont know how to use it (when to use which encryption)]
i dunno whats the use of having the event on connection nothing on mind
i dont understand a thing about encryption and decryption i jus used p4n's system and im having troubles with it cos i dont understand a thing
public class PasswordSeedPacket : ConquerPacket
{
public PasswordSeedPacket()
: base(8, false)
{
}
public ushort
Param,
Param2;
public uint Seed;
public static implicit operator byte[](PasswordSeedPacket packet)
{
packet.Write((ushort)packet.Param);
packet.Write((ushort)packet.Param2);
packet.Write(packet.Seed);
return packet.ToArray();
}
}
public static void Auth_Connection(SocketClient Client)
{
Client.AuthCrypt = new Security.AuthCryptography();
Client.PasswordSeed = Core.Kernel.Rnd.Next(Core.Kernel.RndSeed);
Packets.Structures.PasswordSeedPacket Packet = new Packets.Structures.PasswordSeedPacket();
Packet.Param = 8;
Packet.Param2 = 1059;
Packet.Seed = (uint)Client.PasswordSeed;
Client.Send(Packet);
}