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
-
ChatClientThread(ChatClient, Socket)
- create thread and initialize parent and server
-
run()
- execute the thread - wait for replies from the server and display them,
close connection if on failure
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
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