Common library for setting up and handling server

Hi
I am working on libraries that uses SDL_net
Main problem using SDL_net is that anyone who want to use these
libraries have to start from scrap to make something concrete. As sdl
is desined for game programming therefore there should be more
complete networking libraries so that we can make multi-player
networking game.
I have already started working on it and right now it in partial usable state.
I want to share my code with all the other sdl developed so that they
can test, fix and work on it.
How can send my code to you so that you can decide whether to add me
as developer in your repositories.

Hello !

I have already started working on it and right now it in partial usable state.
I want to share my code with all the other sdl developed so that they
can test, fix and work on it.
How can send my code to you so that you can decide whether to add me
as developer in your repositories.

You have many choices, you can use GitHub, SourceForge, GoogleCode
or other services to upload the code. Even more simply is it to ZIP the code,
upload it to some webspace and publish a link here.

CU

here’s the link of my code
http://cid-6618ad5bacf34230.office.live.com/self.aspx/.Public/server.tar.gzOn 3/19/11, Torsten Giebl wrote:

Hello !

I have already started working on it and right now it in partial usable
state.
I want to share my code with all the other sdl developed so that they
can test, fix and work on it.
How can send my code to you so that you can decide whether to add me
as developer in your repositories.

You have many choices, you can use GitHub, SourceForge, GoogleCode
or other services to upload the code. Even more simply is it to ZIP the
code,
upload it to some webspace and publish a link here.

CU


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

here’s the link of my code
http://cid-6618ad5bacf34230.office.live.com/self.aspx/.Public/server.tar.gz

Hello !

Hello Deepak,

I still see this in your code :On 03/18/2011 04:19 PM, deepak aggarwal wrote:

On 3/19/11, Torsten Giebl wrote:
========

while(quit)
{
nanosleep(&t,NULL);
// Open client socket on server side for sending dynamic port
address-temprary
if((client_socket=SDLNet_TCP_Accept(server_socket)))

========

Sleeping or busy waiting is not the solution here. May be you should read
again the last thread you started and use what has been suggested to you.

Also that code is not portable because (at least) of pthreads and posix
semaphores. I see a couple places where you can leak pthread and sockets.
Check your error paths.

On a higher level, you should explain what exactly you’re trying to do.

Regards,
Frank.

Hi Frank

here’s the link of my code
http://cid-6618ad5bacf34230.office.live.com/self.aspx/.Public/server.tar.gz

Hello !

Hello Deepak,

I still see this in your code :


while(quit)
{
nanosleep(&t,NULL);
// Open client socket on server side for sending dynamic port
address-temprary
if((client_socket=SDLNet_TCP_Accept(server_socket)))

Yup i have used it. Actually this a bit old code. My new code is
tuxmath repositories.

Sleeping or busy waiting is not the solution here. May be you should read
again the last thread you started and use what has been suggested to you.

Also that code is not portable because (at least) of pthreads and posix
semaphores. I see a couple places where you can leak pthread and sockets.
Check your error paths.

Will check it.

On a higher level, you should explain what exactly you’re trying to do.

I am trying to make game networking engine(initially). That can also
we used for other purposes also once its completely implemented as
small modules.
It will be something like raknet.
Were game programmers don’t have to write code from scrap for making
game networking engine. This will make whole development process
faster and more reliable
I have faced this problem while working on networking engine for
tuxmath. That’s why I have planned to do this so that i can help my
organization and other organization as well.On 3/19/11, Frank Zago wrote:

On 03/18/2011 04:19 PM, deepak aggarwal wrote:

On 3/19/11, Torsten Giebl wrote:
Regards,
Frank.