Hello guys,
Do anybody know very good tutorial for packet networking in C# (or C++) for beginners? I know programming and all the stuff but I don't really know how the Server and Client communicate, how the server stores users, how server & client is listening and so on..
I would like to write chat with runned server and multi-clients connected to its, just like cs2d_dedicated (but it don't need to display messages, just clients must).
Or somebody can teach me via Discord or Skype. I really need this!
Maybe I should learn at Lua Packets because of easy implementation? Admin/mod comment
Removed weird "___" from title /DC ___Depends on the language, the client & the server
___I mean you could just use a push service or create your own with node
___You could then use any language to pass messages to your "node" server and create a listener on the client side to listen for new messages
___Possibilities are endless, maybe you should go into more detail what you exactly want to do. What is the client running on, do you have a server, are you willing to create a server for message polling, etc.
Edit: If you haven't got the hint by now; maybe remove that underscore crap from the title? I don't want to do something good or serious. I want to learn packets at real code. Chat example would be the best. Ok, I have learned how Packet Networking work like, but now I come with question..
How to auth clients to make non-hackable packets? (To not send fake packets)
I'm generating random secret key while logging into account & callback and the secret is used to all Stream Requests. Is it good or there are some design patterns that I don't know?
Also I generate random client ID to targer every client, and the clients are related with their logins to database. Use (elliptic curve) Diffie-Hellman to generate a secret and then do AES-128 or AES-265 to encrypt the data with a GMAC authentication code.
Or use an existing crypto library, because you'll probably get it wrong. As will almost everybody else. Crypto is not something one can "do", it's something that a lot of thought has to be put into.