Sockets support in SDL or a guide to help with it

Hi,

I was thinking about SDL and the fact that it allows graphics and sound and a graphical IDE (aedGUI which
Sam works on), and thus is a very good solution for cross-platform Internet applications such as a web
browser, and online multiplayer graphical games. I couldn’t find anything regarding this particular aspect
in the SDL Mbox archive (all 100mb of it that I downloaded).

I’ve found the problem with using TCP/IP sockets in a cross-platform manner is that sometimes it’s hard to
work with them, because there aren’t event queues, just polling and threading issues. Windows uses an
event-based system with the WSAE_ style messages. Would socket events be a good idea for SDL?

Of course, event-based sockets could just bloat out SDL (it’s very lean at the moment), and that wouldn’t be
a good thing, so perhaps an external library would be a good idea.

It’s just an idea for discussion. I’m not sure if sockets fit in with the idea of “Direct Media”, but
network connectivity is a kind of media output device.

Cheers,

Jeremy Smith.

hey jeremy, have you seen SDL_Net?

its what i use and it works good for me> ----- Original Message -----

From: jeremyalansmith@softhome.net (Jeremy Smith)
To:
Sent: Sunday, December 07, 2003 4:04 PM
Subject: [SDL] Sockets support in SDL or a guide to help with it

Hi,

I was thinking about SDL and the fact that it allows graphics and sound
and a graphical IDE (aedGUI which
Sam works on), and thus is a very good solution for cross-platform
Internet applications such as a web
browser, and online multiplayer graphical games. I couldn’t find anything
regarding this particular aspect
in the SDL Mbox archive (all 100mb of it that I downloaded).

I’ve found the problem with using TCP/IP sockets in a cross-platform
manner is that sometimes it’s hard to
work with them, because there aren’t event queues, just polling and
threading issues. Windows uses an
event-based system with the WSAE_ style messages. Would socket events be a
good idea for SDL?

Of course, event-based sockets could just bloat out SDL (it’s very lean at
the moment), and that wouldn’t be
a good thing, so perhaps an external library would be a good idea.

It’s just an idea for discussion. I’m not sure if sockets fit in with the
idea of “Direct Media”, but
network connectivity is a kind of media output device.

Cheers,

Jeremy Smith.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Hi,

I was thinking about SDL and the fact that it allows graphics and sound and a graphical IDE (aedGUI which
Sam works on), and thus is a very good solution for cross-platform Internet applications such as a web
browser, and online multiplayer graphical games. I couldn’t find anything regarding this particular aspect
in the SDL Mbox archive (all 100mb of it that I downloaded).

I’ve found the problem with using TCP/IP sockets in a cross-platform manner is that sometimes it’s hard to
work with them, because there aren’t event queues, just polling and threading issues. Windows uses an
event-based system with the WSAE_ style messages. Would socket events be a good idea for SDL?

What can I say, great minds think alike. Take a look at Net2 at
http://gameprogrammer.com/game.html it does pretty much what you just
described. And, it is based entirely on SDL and SDL_net so it works
cross platform.

	Bob PendletonOn Sun, 2003-12-07 at 18:04, Jeremy Smith wrote:

Of course, event-based sockets could just bloat out SDL (it’s very lean at the moment), and that wouldn’t be
a good thing, so perhaps an external library would be a good idea.

It’s just an idea for discussion. I’m not sure if sockets fit in with the idea of “Direct Media”, but
network connectivity is a kind of media output device.

Cheers,

Jeremy Smith.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

±--------------------------------------+