SDL_Net .. Set socket option

I’ve been working a little with the SDL_Net library and i’ve noticed that
there is no way to call setsockopt(). Is there any good reason that this
function does not exist ?

My guess is that SDL’s goal of cross-platformism would be compromised
because it has to maintain a standard of operation across a common
denominator of functionality- in other words, features that you could enable
with a setsockopt() equivalent may be available under Linux but not Windows.
And if you’re not worried about cross-platform programming, you could always
grab the socket handle from SDL and do your setsockopt() magic.> -----Original Message-----

From: sdl-admin at libsdl.org [mailto:sdl-admin at libsdl.org]On Behalf Of
Shane Fausett
Sent: Tuesday, November 06, 2001 12:21 PM
To: sdl at libsdl.org
Subject: [SDL] SDL_Net … Set socket option

I’ve been working a little with the SDL_Net library and i’ve
noticed that
there is no way to call setsockopt(). Is there any good
reason that this
function does not exist ?


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

At 12:49 PM 11/6/2001 -0700, you wrote:

My guess is that SDL’s goal of cross-platformism would be compromised
because it has to maintain a standard of operation across a common
denominator of functionality- in other words, features that you could enable
with a setsockopt() equivalent may be available under Linux but not Windows.
And if you’re not worried about cross-platform programming, you could always
grab the socket handle from SDL and do your setsockopt() magic.

I am however very worried about cross platform magic … But some socket
options are cross platform and they are not in the sdl for example try
doing an UDP broadcast without setting a socket option.> > -----Original Message-----

From: sdl-admin at libsdl.org [mailto:sdl-admin at libsdl.org]On Behalf Of
Shane Fausett
Sent: Tuesday, November 06, 2001 12:21 PM
To: sdl at libsdl.org
Subject: [SDL] SDL_Net … Set socket option

I’ve been working a little with the SDL_Net library and i’ve
noticed that
there is no way to call setsockopt(). Is there any good
reason that this
function does not exist ?


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


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

At 12:49 PM 11/6/2001 -0700, you wrote:

My guess is that SDL’s goal of cross-platformism would be compromised
because it has to maintain a standard of operation across a common
denominator of functionality- in other words, features that you could enable
with a setsockopt() equivalent may be available under Linux but not Windows.
And if you’re not worried about cross-platform programming, you could always
grab the socket handle from SDL and do your setsockopt() magic.

I am however very worried about cross platform magic … But some socket
options are cross platform and they are not in the sdl for example try
doing an UDP broadcast without setting a socket option.

You should probably use sockets directly. They’re more or less supported
across UNIX, Windows, BeOS, and MacOS X. SDL_net was specifically supposed
to address the problem of init/cleanup and to work on MacOS classic. I’m not
especially impressed by the result.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

At 02:50 PM 11/6/2001 -0800, you wrote:
Thanks … By the way … if anyone else is interested I found a great
little book on socket programming … The Pocket Guide to TCP/IP sockets by
Michael J Donahoo and Kenneth L. Calvert … for about $15 it cleared up a
lot of socket programming for me.> > At 12:49 PM 11/6/2001 -0700, you wrote:

My guess is that SDL’s goal of cross-platformism would be compromised
because it has to maintain a standard of operation across a common
denominator of functionality- in other words, features that you could
enable

with a setsockopt() equivalent may be available under Linux but not
Windows.

And if you’re not worried about cross-platform programming, you could
always

grab the socket handle from SDL and do your setsockopt() magic.

I am however very worried about cross platform magic … But some socket
options are cross platform and they are not in the sdl for example try
doing an UDP broadcast without setting a socket option.

You should probably use sockets directly. They’re more or less supported
across UNIX, Windows, BeOS, and MacOS X. SDL_net was specifically supposed
to address the problem of init/cleanup and to work on MacOS classic. I’m not
especially impressed by the result.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment


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