The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
[SDL_net] ICMP possible?
Sam Lantinga
Guest

Quote:
Hi there,
It's me again, I was wondering if it's possible to use ICMP with
SDL_net? (To make ping packets, to perform traceroutes, etc...)

Quote:
I believe it is not possible, in that case, is there any Simple
Networking Layer solution? Wink

Quote:
If there is none, then, I'm ready to work on this as I'll need such
kind of solution for the final stages of my project. I believe it would
be a nice add-on for SDL_net.

You're welcome to submit a patch, please make sure it works on as many
supported platforms as possible.

I seem to remember that root access is required for ICMP on many unices.

See ya!
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment
[SDL_net] ICMP possible?
Simon
Guest

Quote:
You're welcome to submit a patch, please make sure it works on as many
supported platforms as possible.

I seem to remember that root access is required for ICMP on many unices.

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

Hi there Sam,
Thanks for the reply! I'll certainly be working on my own lib for
this kind of work. I'd be interested in either patching SDL_net, or
making an extra lib that would require SDL_net, like enabling ICMP with
SDL_net from the compiler.

I was wondering if there were any standards I should follow regarding
my programming style? I really like C++'s object oriented abilities and
I will probably be working without SDL_net completely for my project. I
will be developing a class based TCP/UDP/ICMP simple networking
architecture. It may then become a new lib of its own. And yes, I will
try to support as many platforms as possible, but for this, I'll
probably need help to test the lib on different platforms that I don't
have...

Anyway, I'm still programming this thing on paper, I'll give more
news about my development here later on.

Thanks,
Simon
[SDL_net] ICMP possible?
Sam Lantinga
Guest

Quote:
Thanks for the reply! I'll certainly be working on my own lib for
this kind of work. I'd be interested in either patching SDL_net, or
making an extra lib that would require SDL_net, like enabling ICMP with
SDL_net from the compiler.

It sounds like you'll just be making your own net library, which is great!
It'll be a good learning experience, and I'm sure you'll have fun. :)

Good luck!
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment