Sign in to follow this  
rbanke

Monogame & TCP

Recommended Posts

rbanke    154

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
Nypyren    12061
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this