Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Networking in SDL


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
4 replies to this topic

#1 kumlin   Members   -  Reputation: 108

Like
0Likes
Like

Posted 10 August 2012 - 08:07 PM

I've been doing some simple sdl tutorials and was curious as to what the learning curve for networking in sdl is. Also I was wondering what could be accomplished with the networking in sdl. For instance if I could create a server with rooms that people could join or if sdl is only able to be used in LAN or direct connect situations. If the first part isn't true then what would be the best way to achieve it? I have no experience with networking in C++ at all so I really have no idea where to start....

Sponsor:

#2 hplus0603   Moderators   -  Reputation: 5519

Like
0Likes
Like

Posted 11 August 2012 - 05:21 AM

"Networking" is the hard part. The learning curve is likely years.
"Networking in SDL" is easy, once you know "SDL" and "C++" and "Networking."

enum Bool { True, False, FileNotFound };

#3 kumlin   Members   -  Reputation: 108

Like
0Likes
Like

Posted 12 August 2012 - 07:34 AM

Alright thanks

#4 Trevanian   Members   -  Reputation: 118

Like
0Likes
Like

Posted 12 August 2012 - 12:27 PM

Hello,

SDL_NET is quite simple to use, at the end there are a pair of commands to send and receive data over the net after connecting to a socket server, the problem is you will probably need threads to process the network data without stoping main game thread, that is a little more difficult.

The point is: do you need to be able to connect 1 user / 100 users / 10000 users?

#5 nfries88   Members   -  Reputation: 259

Like
0Likes
Like

Posted 22 August 2012 - 06:37 PM

As was recommended, I would suggest SDL_Net. It will reduce the learning curve from years to a year and some change, assuming of course you're not trying to do something crazy for a beginner like make an MMORPG from scratch.
Looking for paid or open-source C++ programming work. Been programming since 2005. No degree.




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