[SDL_net] TCP vs UDP for streaming on different OS

Hi there,
I’m starting a huge project that will use SDL_net a lot. All
graphical environment will be done in SDL and possibly OpenGL on top of
it. But I’m currently planning my transfer protocol. My major concern
is for stability (more than speed).

I’ve just read a couple papers that describe the differences between
TCP and UDP and the different techniques used to stream media on the
internet. I will probably favor UDP and make my own light control
mechanism but it seems UDP is not as prioritary on the internet as TCP
(ie. UDP packets may get dropped when traffic is high). Anyway, my
first part of the project is to make a speed/stability testing program
that runs on the 3 major platforms (MacOS X, Linux, Windows). And I
hope to find out the obstacles I’ll need to overcome in my next parts of
the project.

My question regarding SDL_net is if it does any manipulation of any
kind, or if the OS does any manipulation of any kind at the moment I use
the commands Send and Recv. I believe the OS will repackage the packet
before sending it on the network, and the router may repackage it, and
then it may be repackaged on the internet by any nodes. But I’m lacking
vocabulary to research on this, also is there anything else I should
know that can affect the stability and speed on a Send/Recv loop?

Last question is more general, I’d like to increase my knowledge of
network programming. Can anyone of you suggest a book that I will buy
and read, that could teach me all that I need to know to understand the
principles of file transfer, peer-to-peer networking, media streaming,
file caching, proxies.

Thanks a lot in advance,
Simon

I just ordered a book to help me on this subject as well, it looks pretty
good although i havent had a chance to read it in super detail.

it’s called “Multiplayer game programming” by Todd Barron and is part of the
oh so prevalant “prima tech’s game development series”, edited by none other
than Andre LaMothe (:

check it out:
http://www.amazon.com/gp/product/0761532986/qid=1135727798/sr=8-1/ref=pd_bbs_1/103-4168004-2315065?n=507846&s=books&v=glance> ----- Original Message -----

From: simon.xhz@gmail.com (Simon)
To:
Sent: Tuesday, December 27, 2005 2:23 PM
Subject: [SDL] [SDL_net] TCP vs UDP for streaming on different OS

Hi there,
I’m starting a huge project that will use SDL_net a lot. All graphical
environment will be done in SDL and possibly OpenGL on top of it. But I’m
currently planning my transfer protocol. My major concern is for
stability (more than speed).

I’ve just read a couple papers that describe the differences between TCP
and UDP and the different techniques used to stream media on the internet.
I will probably favor UDP and make my own light control mechanism but it
seems UDP is not as prioritary on the internet as TCP (ie. UDP packets may
get dropped when traffic is high). Anyway, my first part of the project
is to make a speed/stability testing program that runs on the 3 major
platforms (MacOS X, Linux, Windows). And I hope to find out the obstacles
I’ll need to overcome in my next parts of the project.

My question regarding SDL_net is if it does any manipulation of any
kind, or if the OS does any manipulation of any kind at the moment I use
the commands Send and Recv. I believe the OS will repackage the packet
before sending it on the network, and the router may repackage it, and
then it may be repackaged on the internet by any nodes. But I’m lacking
vocabulary to research on this, also is there anything else I should know
that can affect the stability and speed on a Send/Recv loop?

Last question is more general, I’d like to increase my knowledge of
network programming. Can anyone of you suggest a book that I will buy and
read, that could teach me all that I need to know to understand the
principles of file transfer, peer-to-peer networking, media streaming,
file caching, proxies.

Thanks a lot in advance,
Simon


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

it’s called “Multiplayer game programming” by Todd Barron and is part of
the oh so prevalant “prima tech’s game development series”, edited by
none other than Andre LaMothe (:

Well, I have to add I’m more after the theory of things and the gaming
industry doesn’t interest me much. I’ll give it a look, but do you have
other suggestions?

Thanks,
Simon

it has alot of theory in it, it talks not just about 1v1 internet games but
also teaches everything all the way up to something the size of world of
warcraft.

if you gave some more details about the project i bet someone could direct
you better (:> ----- Original Message -----

From: simon.xhz@gmail.com (Simon)
To: "A list for developers using the SDL library. (includes SDL-announce)"

Sent: Tuesday, December 27, 2005 6:25 PM
Subject: Re: [SDL] [SDL_net] TCP vs UDP for streaming on different OS

it’s called “Multiplayer game programming” by Todd Barron and is part of
the oh so prevalant “prima tech’s game development series”, edited by
none other than Andre LaMothe (:

Well, I have to add I’m more after the theory of things and the gaming
industry doesn’t interest me much. I’ll give it a look, but do you have
other suggestions?

Thanks,
Simon


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

Hi!On 12/28/05, Simon <simon.xhz at gmail.com> wrote:

Well, I have to add I’m more after the theory of things and the gaming
industry doesn’t interest me much. I’ll give it a look, but do you have
other suggestions?

Computer Networks by Peterson is a reference when it comes to
networks. However it’s a book thats also about the hardware, not only
about the software part. And you won’t find anything SDL related in
it.

Regards,
Matthias

Matthias Bach

Computer Networks by Peterson is a reference when it comes to
networks. However it’s a book thats also about the hardware, not only
about the software part. And you won’t find anything SDL related in
it.

Sounds more like what I’m looking for… does it talk about routers
repackaging packets to fit their MTU sizes?

I’ll give it a shot!
Thanks,
Simon

I’ll give it a shot!

This is the book you suggested:

The description seems to show this book emphasizes the programmer’s
point of view, I really like that.

It’s a costy book though, and I may not be able to get it until a couple
of weeks but until then, I’ll have time to work on my GUI ! :wink:

Thanks a lot!
Simon