Forum

> > Off Topic > Any packet networking for beginners?
Forums overviewOff Topic overviewLog in to reply

English Any packet networking for beginners?

5 replies
To the start Previous 1 Next To the start

old Any packet networking for beginners?

Gaios
Reviewer Off Offline

Quote
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

old Re: Any packet networking for beginners?

Yates
Reviewer Off Offline

Quote
___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?

old Re: Any packet networking for beginners?

Gaios
Reviewer Off Offline

Quote
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.

old Re: Any packet networking for beginners?

ohaz
User Off Offline

Quote
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.
To the start Previous 1 Next To the start
Log in to replyOff Topic overviewForums overview