Multi-Threaded Server Client Chat Model
Multi-Threaded Server Client Chat Model
m
AIM OF THE PROJECT
j Here is the Multi-threaded Sever Client Chat Model (An enhanced version of
Simple Server Client Chat Model).
INTRODUCTION CONT«
j There is a simple Server which accepts request from clients and provides them
connection and handles there chat session.
j Class Socket implements the client side and the class ServerSocket class
implements the server side of the two-way link. .
j The client request the server at some IP address and TCP port number.
j InputStreamReader is the ¶bridge· between a low level byte stream (like the one
coming from the socket) and a high level character stream BufferedReader
j Now to write data to a socket PrintWriter class is used which has print() and
println() method.
j With the similar procedure as in reading data PrintWriter is also chained to the
Socket·s low-level (Connection) output-stream.
&(& &
&(& !")##$
j Multi-threading in java means looking at both the thread and the job that·s run
by the thread.
CONTINUE«..5
DEVELOPED APPLICATION
Client A Server
p
p
DATAFLOW DIAGRAM
p p
p
p
p
p
CONCLUSION