Download presentation
Presentation is loading. Please wait.
1
The Chat Problem
2
Contents Problem Description Solution
3
A) Problem Description
Develop a chat program that allow multiple participants to send and receive text messages The server port could be 5000
4
B) Solution Developing the Chat Server Developing the Chat Client
5
I. Developing the Chat Server
The Runner Class Developing VerySimpleChatServer Class
6
1. The Runner Class
7
2. Developing VerySimpleChatServer Class
2.1. Getting Ready to Serve Incoming Connections 2.2. Storing Client's Output Stream for Broadcast 2.3. Broadcasting Right After Receiving a Message
8
2.1. Getting Ready to Serve Incoming Connections
10
2.2. Storing Client's Output Stream for Broadcast
11
2.3. Broadcasting Right After Receiving a Message
12
II. Developing the Chat Client
The Runner Class Developing the View Connecting to the Chat Server Displaying Message If Receive One Adding Listener to GUI Components
13
1. The Runner Class
14
2. Developing the View
15
3. Connecting to the Chat Server
16
4. Displaying Message If Receive One
17
5. Adding Listener to GUI Components
19
References Head First Java, second edition, chapter 15. Kathy Sierra and Bert Bates. O'Reilly, 2005 Building a Java chat server. Greg Travis. ibm/developerworks
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.