Recent Posts

Pages: 1 ... 5 6 [7] 8 9 10
61
GNE Library / Re: About threads in gne
« Last post by irado on September 12, 2008, 11:28:50 AM »
Ok, thanks.

Do you suggests one network library, unless raknet, that can support 1000 connections?
62
GNE Library / Re: About threads in gne
« Last post by Gillius on September 12, 2008, 10:47:27 AM »
I haven't been working actively on GNE for a long time, but the SVN release contains a lot more than the last official release, so you do want to work with GNE you should work with the SVN trunk. I got close to making a release but not quite. Other than bug fixes the biggest difference with the SVN trunk version is that it has a completely redone (and much more modern) build system based on CMake.

I don't plan on working on GNE for the foreseeable future -- my development effort now has been focused on my research project RealDB: http://gillius.org/realdb/.

GNE does not scale to have many clients, and is not designed or appropriate for a massively multiplayer game. My opinion is that a library/server for a MM game requires an entirely different programming approach. So, GNE is really meant for the type of server-based game for maybe 8 or 16 players max, where the clients typically only have 1 connection and the server may be handling 8 to 32, but not something like 1000. For that, you are right, GNE will not scale because it uses 1 thread per connection.
63
GNE Library / Re: About threads in gne
« Last post by irado on September 12, 2008, 08:47:33 AM »
Very thanks for the answer,

I am search one library of networking in c++, I think use gne. So, gne continue in development? The forum i see that works.

I do this question about threads, because i see that in the tutorial "exhello", one thread wait new connections and other thread is create automatically for each new connection come.

One application that have 1000 connections same time, i think that cannot have 1001 threads in the server for limitations of memory, for sample. One thread could have 50 connections, and not one.

So, i am begin in studys in gne, What class i use for create the connection without the create threads automatically? because the class ConnectionListener create one thread atutomatically.

thanks for help.
64
GNE Library / Re: About threads in gne
« Last post by Gillius on September 11, 2008, 10:09:44 PM »
From what I can remember, there is one event thread per connection. So, each ConnectionListener will be called by the event thread, but there shouldn't be more than one thread calling methods on it (unless you set it up to listen to multiple connections).

The "main" thread is still always under your control. In the exhello example, the main thread just waits for the signal to shut down the server, and on the client the main thread writes some packets to the server. The client connection listener does the receive portion.
65
GNE Library / Re: About threads in gne
« Last post by irado on September 11, 2008, 05:45:22 PM »
This is one very simple quest or nobody read the quest yet?

thanks
66
GNE Library / About threads in gne
« Last post by irado on September 10, 2008, 08:24:02 PM »
I read the tutorial "Creating exhello", and I ask if the code this tutorial, the gne create one thread for the lister of the server, into it create one thread for each new connection in the server?

thanks
67
GNE Library / Re: N00b here! I want to help.
« Last post by GwynWynn on February 19, 2008, 01:13:04 AM »
I ran into a small problem. I have tried three different approaches and the examples have not compiled. The latest attempt (I got frustrated) was with CMake and the entire GNE system compiled from the trunk. I set the options as before and changed the Examples switch to ON. All the GNE main code compiled normally as before; however, the exadder code failed to compile and the make system halted and returned me to the prompt after spitting out a bunch of errors regarding "multiple definitions of _onexit" and continued on with many "undefined references." I am not sure how many of the errors are cascade effects of the "multiple definitions" errors (_onexit and atexit).

Now I am confused, any help would be appreciated.
68
GNE Library / Re: N00b here! I want to help.
« Last post by Gillius on February 16, 2008, 05:16:14 PM »
The way that the CMake is set up you need to compile all of the examples at once. I think the only limitation why this is so is because the main file at the gnelib root sets everything up, and the examples work off of that. You could parameterize the file to only build some examples, but that might be too much work. I'm not sure quite how to modify it to allow compiling only specific examples by running CMake in their directories as when I was learning it I was focused on the monolithic approach.

If you figure out how to adjust the CMake or just want to contribute instructions to manually compile a specific example, pass it along and I can integrate it into my code.
69
GNE Library / Re: N00b here! I want to help.
« Last post by GwynWynn on February 16, 2008, 02:15:58 PM »
I was trying to compile only some of the examples. I was using an incremental approach, I tried to use Cmake on the exhello example and found that it is not configured for for Cmake by itself. So I then tried to use the command line gpp/g++ and got a bit confused on how to setup the lib switches.

Since I did not make the examples on the first run, I gather I have to Cmake everything, or figure out how to setup the command line and then make a Cmake List for each example. I am interested in learning Cmake and gpp command structures anyway so I will try the latter first. If I get too frustrated, I will remake all the files.
70
GNE Library / Re: N00b here! I want to help.
« Last post by Gillius on February 15, 2008, 11:45:51 PM »
Hey guys, we've only got 3 people active on the forums right now let's not get carried away.

Anyway, GwynWynn, I couldn't tell if you were trying to compile the examples directly with gcc or weren't successful with CMake. Let me know if you have any problems or any suggestions on how to make anything easier in the compile.

I want to thank you since having someone go over the process and give feedback is helpful as it's hard for me to tell if my documentation is readable to someone who is new to the project.
Pages: 1 ... 5 6 [7] 8 9 10