Jump to content

Protocol for game networking?


L B
 Share

Recommended Posts

Title says it all.

I'm guessing UDP, with an initialization packet, but that doesn't seem too reliable.

I'd work with TCP, but I get duplicated data in C#, since the only according SocketType is Stream, which duplicates data.

 

Ideas?

Link to comment
Share on other sites

Kept thinking, UDP is definitely the way to go. However, I'm used to a Multithreaded TCP Server approach, with each thread a socket. My question is: Do I actually only need 1 UDP socket for all my connections? If so, I must provide some kind of identification system in my sent packets.

 

This seems very troublesome. I would love to use TCP, but I get some kind of annoying duplication in C#. I'm not even sure if this is normal or not, but I do know I used to work with the same C# server architecture with a client that I didn't make that used TCP, and there was no duplication.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...