English Any packet networking for beginners?

5 replies
Goto Page
To the start Previous 1 Next To the start
Up
Gaios
Security Supporter
Offline Off
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?
This community is a meme.

Admin/mod comment:

Removed weird "___" from title /DC
18.01.18 02:24:00 pm
Up
Yates
Reviewer
Offline Off
___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?
18.01.18 02:35:40 pm
Up
Gaios
Security Supporter
Offline Off
I don't want to do something good or serious. I want to learn packets at real code. Chat example would be the best.
This community is a meme.
18.01.18 03:25:27 pm
Up
Whealtey
User
Offline Off
hey,

i have teached it myself with this tutorial (but it is written in german, if you dont understand, look only at the code):
https://msdn.microsoft.com/de-de/library/bb979208.aspx

anyway, you should look at this TcpClient-Class-Doc.:
https://msdn.microsoft.com/en-us/library/system.net.sockets.tcpclient(v=vs.110).aspx
loading...
22.01.18 09:58:45 am
Up
Gaios
Security Supporter
Offline Off
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.
This community is a meme.
22.01.18 10:49:44 am
Up
ohaz
User
Offline Off
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.
https://ohaz.engineer - Software Engineering
To the start Previous 1 Next To the start