Sign in to follow this  

Monogame & TCP

This topic is 1662 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've recently been interested in moving my pet project (2d persistent multiplayer game) from C++ (DX & Winsock) to C# using Monogame to make Linux & Mac (and maybe someday IOS & Android) builds easily.  While doing my research, it seems that Monogame only supports UDP and I would like to use TCP. The most I've found on this is that I could use System.Net.Sockets, but how would that be portable? If anyone could point me in the right direction to find more information on this, it would be very helpful, I've not had much luck. 

 

As an aside, I've also been contemplating sticking with C++ and just going with SDL, so if someone has a great reason to go that route, I'm all ears.

Share this post


Link to post
Share on other sites
You should just try them out. Most of the .Net framework "just works" in Mono. We use Unity at work, which uses Mono for its "scripting" system (I put scripting in quotes because I don't feel like it's scripting if the vast majority of the game is written that way). We use some of the System.Net.Sockets stuff on Android and iOS devices, and it works just fine.

Not much is different if you're already familiar with using Winsock. Edited by Nypyren

Share this post


Link to post
Share on other sites

Thats great to hear, I'll try that out a and see how it goes, thanks!

Share this post


Link to post
Share on other sites
Sign in to follow this