What are some open source client-server projects which might be best to look at and mimic their code organization style?
Java is preferred but not required.
Related:
I'm still trying to determine an answer to my question from a few minutes ago, "Should client-server code be written in one 'project' or two?" and I think it would benefit me to see how other projects organiz开发者_高级运维e their code (and hopefully deduce the pros and cons of why they chose to do it that way).
Well since nobody else dares answer, here are a couple, though I'm not sure they are good examples to go by: (disclaimer: I have only looked into the source code of a few of these)
- Cube game & 3D engine, a multiplayer FPS with unique multiplayer editing capabilities, written from scratch using OpenGL and SDL
- Cube 2: Sauerbraten, same as Cube with slightly more developed features
- Planeshift, an open-source MMO
- Red Dwarf Server, a Java server application primarily targeted at online games and MMOs; only comes with small example clients
I dont know if this is too late but heres what i have to say about it, i usually keep the server and the client in the same project just incase they both need access to a class. If you are still interested in some example code, ive been doing networking for 5 years+ and i have plenty of example code if youre interested.
精彩评论