Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Benzy54

[java] multiplayer

This topic is 6226 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi i want to learn more about doing client/server programs in java. I was wondering if someone could point me in the right direction. I would kinda want to start with a simple chat program. Thanks

Share this post


Link to post
Share on other sites
Advertisement
I wrote one of those last summer... It was an interesting experience. Especially since I had to learn GUI and thread stuff at the same time, just to make the program useable.

Just to complicate things, I decided to learn to use Serialization at the same time.

In case you''re curious as to what I came up with:

This is an executable jar containing the Swing based client.

This is an executable jar containing the server which has no UI. Shutting it down is possible without killing the process, but it''s not well documented. Basically, you''d use a command something like:

java -cp NetServer.jar server.KillLocalServer

This is a jar file containing all the .java sources. I used Forte (some early version) to help build the GUI, and the .form files it created aren''t included. Still, I doubt you''d care that much about them.

I found two books to be great resources while working on that project. Both were by O''Rielly press... The first was Java Networking. The second was Java Threads. It''s definately worth your time to see if you can get them from a local library. Depending on how lost you feel, it might be a good idea to buy them outright.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!