开发者

P2P messanger in java [closed]

It's diffic开发者_如何学Cult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

I have to write P2P messanger in java. Could you give me any suggestions how can I start? What should I use to create this application? If you know some tutorials about this topic, Ill appreciate them very much! Greetings!


If you are going to use only Core Java here are my picks:

Your program must have a server thread. It must listen to incoming requests on a specific port. Every time a request comes, it must spawn a new thread. The new thread must create a GUI for communication. Bear in mind that the server must pass on the Socket instance to the newly spawned thread for further communication.

Using the socket instance you can communicate with the remote client.

Use Swing for the GUI.

The GUI must allow users to connect to any IP address. When the user connects to any IP address it must do so on the port where your server thread is listening.

I am assuming that you are familiar with the basics of multi-threading, network programming and swing.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜