Creating a server with channels

Title says it all. I’m a bit perplexed as to how I am going to accomplish this. I had envisioned it kind of like this:

GameServer class contains an array of Channel classes which contain an array of Connections. Connections extend thread.

However, it seems I can’t have an array of Threads (I get a “can not cast from void to Connection” error) which is really odd…is there another way to go about this?

www.projectdarkstar.com

;D

-Chris

Thanks. I took a look at it but I’m still confused as to what that is…but here’s what I got from it: It’s an open source abstract server programmed in Java. When I went to downloads though, it had 2 downloads…does it include a client base to connect to the server?

By reading the first post, it seems like you don’t have too much of experience with Java, when you stumble upon such compile-time errors. Networking is quite hard to get right initially, and if you don’t know the basics, the learning-curve might be too steep. I’d advice you to read a few books, write a few small programs, and slowly grow your projects larger and larger. Otherwise you’ll just find yourself frustrated.

ok, that brought a smile on my face and a tear in my eye. ;D

anyways:
depending on what you know already it’s easier to point you in the right (and specific) direction. Eg, type of programs you have written, languages you know etc. Also the function that you want this Server to perform etc.

tbh darkstar might not even be a bad idea, but it needs to be bit less transient(a final release) and needs a guide(for example in the form of a tutorial (a track? suns normal tutorials are well received in general)) The reason it needs a final release is that the documentation would be less transient as you know itś aimed at a specific version.

http://forum.captiveimagination.com/index.php/board,4.0.html

Java Game Networking!!!

;D

…okay, that’s all I have to say.