Jump to content

  • Log In with Google      Sign In   
  • Create Account

Monogame & TCP


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 rbanke   Members   -  Reputation: 154

Like
0Likes
Like

Posted 29 June 2013 - 12:14 PM

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.



Sponsor:

#2 Nypyren   Crossbones+   -  Reputation: 4310

Like
0Likes
Like

Posted 29 June 2013 - 04:10 PM

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, 29 June 2013 - 04:12 PM.


#3 rbanke   Members   -  Reputation: 154

Like
0Likes
Like

Posted 30 June 2013 - 09:40 AM

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






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS