summaryrefslogtreecommitdiff
path: root/src/Client/ChatClient.java
diff options
context:
space:
mode:
authorDor Bivas <dor1_b@walla.com>2013-12-04 13:26:08 +0200
committerDor Bivas <dor1_b@walla.com>2013-12-04 13:26:08 +0200
commit615683d70addedd4c661c8b324599f06dfe65aee (patch)
treea1c3f95b9eb4d281e20164523fda23f3193b8d28 /src/Client/ChatClient.java
parent8a3de31a6337dfa0e0c77bdffe55419cadb22f80 (diff)
use writer
Diffstat (limited to 'src/Client/ChatClient.java')
-rw-r--r--src/Client/ChatClient.java14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/Client/ChatClient.java b/src/Client/ChatClient.java
index 95f97dc..60e33c4 100644
--- a/src/Client/ChatClient.java
+++ b/src/Client/ChatClient.java
@@ -5,14 +5,15 @@ import java.net.Socket;
+
import Server.ChatServer;
public class ChatClient
{
- String nick;
- String realname;
- BufferedWriter output;
- UserInterface ui;
+ private String nick;
+ private String realname;
+ private ChatClientWriter writer;
+ private UserInterface ui;
/** returning the nick name */
public String getNick ()
@@ -35,6 +36,11 @@ public class ChatClient
this.realname = realname;
}
+ public void runSendline (String line)
+ {
+ writer.sendLine(line);
+ }
+
public boolean connect (String host, int port)
{
Socket soc;