Announcing SDL_websrv 0.0.0

This is a simple webserver in a library. Perfect for game servers that want a web interface! It handles all connections for you and also handles GET and POST from clients, so you can use forms. Check it out!

Maybe sam-lan will add this to the libraries page on the SDL web site. eh?

Library Name: SDL_websrv

Compatibility: Linux 75% (all other OSs 25%)

Requires: SDL, SDL_net

Description: webserver in a library using SDL and SDL_net, like UT servers have web configuration now you can easily make one too!

URL: http://jonatkins.org/SDL_websrv/

E-mail: jcatki at home.com–
-==-
Jon Atkins
http://jonatkins.org/

This is a simple webserver in a library. Perfect for game servers that want
a web interface! It handles all connections for you and also handles GET
and POST from clients, so you can use forms. Check it out!

This is AWESOME! I can’t wait to see more of it! (It makes me want to start a
project just to use this :wink:

One small twippy thing: You probably ought to have the configure script check
for SDL_net since you require it. Something like this in your configure.in
file:
AC_CHECK_LIB(SDL_net, main,
LIBS="$LIBS -lSDL_net",
AC_MSG_ERROR([*** SDL_net library not found!])
)

Other than that, this seems like a really neat add-on library. If you can get
the same support in all the OSes SDL supports, this library would be very
keen.On Wednesday 08 August 2001 03:29pm, Jonathan Atkins wrote:

URL: http://jonatkins.org/SDL_websrv/


Sam “Criswell” Hart <@Sam_Hart> AIM, Yahoo!:
Homepage: < http://www.geekcomix.com/snh/ >
PGP Info: < http://www.geekcomix.com/snh/contact/ >
Advogato: < http://advogato.org/person/criswell/ >

You shouldn’t need to add the library to LIBS yourself, since the default
action if found for AC_CHECK_LIB is to add it. I use the following and it
works fine (nice to tell people where to get the library):

Check for SDL_net library

AC_CHECK_LIB(SDL_net, SDLNet_Init, , AC_MSG_ERROR([
*** Unable to find SDL_net library
(http://www.libsdl.org/projects/SDL_net/)
]))> AC_CHECK_LIB(SDL_net, main,

         LIBS="$LIBS -lSDL_net",
         AC_MSG_ERROR([*** SDL_net library not found!])
        )

Oh, duh…

Sorry, yoinked from a KDevelop 1.0 made configure.in (which had some problems
:wink: without really reading what I was grabbing…On Wednesday 08 August 2001 09:56pm, David Phillips wrote:

You shouldn’t need to add the library to LIBS yourself, since the default
action if found for AC_CHECK_LIB is to add it. I use the following and it
works fine (nice to tell people where to get the library):

Check for SDL_net library

AC_CHECK_LIB(SDL_net, SDLNet_Init, , AC_MSG_ERROR([
*** Unable to find SDL_net library
(http://www.libsdl.org/projects/SDL_net/)
]))

AC_CHECK_LIB(SDL_net, main,
LIBS="$LIBS -lSDL_net",
AC_MSG_ERROR([*** SDL_net library not found!])
)


Sam “Criswell” Hart <@Sam_Hart> AIM, Yahoo!:
Homepage: < http://www.geekcomix.com/snh/ >
PGP Info: < http://www.geekcomix.com/snh/contact/ >
Advogato: < http://advogato.org/person/criswell/ >

yeah, I hadn’t gotten to some of the configure stuff for SDL_net yet :wink:
gltron is the first game that’s going to try it out for the network server.
the POST support will be expanded in the near future to support both encoding methods of POST.
right now the POST method supportted is the default one, which is just like GET but in a post…
HTTP 1.0 will be fully supported first, then I will start on HTTP 1.1 and then onto the https: type server support.
The end idea is to make this library as small as possible, yet as fully featured as needed!–
-==-
Jon Atkins
http://jonatkins.org/