Class ChatClientThread

Class ChatClientThread

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----ChatClientThread

class ChatClientThread
extends Thread
Chat client thread - thread that reads and display all the replies from the chat server.
Author:
Tomer Klainer
mandor@cs.huji.ac.il
See Also:
ChatServer, ChatClient

Constructor Index

 o ChatClientThread(ChatClient, Socket)
create thread and initialize parent and server

Method Index

 o run()
execute the thread - wait for replies from the server and display them, close connection if on failure

Constructors

 o ChatClientThread
  public ChatClientThread(ChatClient p,
                          Socket s)
create thread and initialize parent and server
Parameters:
p - parent of this thread (the chat client)
s - socket to the server

Methods

 o run
  public void run()
execute the thread - wait for replies from the server and display them, close connection if on failure
Overrides:
run in class Thread