summaryrefslogtreecommitdiff
path: root/src/Client/ChatClientWriter.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/Client/ChatClientWriter.java')
-rw-r--r--src/Client/ChatClientWriter.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/Client/ChatClientWriter.java b/src/Client/ChatClientWriter.java
index 9d89cea..91a1d99 100644
--- a/src/Client/ChatClientWriter.java
+++ b/src/Client/ChatClientWriter.java
@@ -14,16 +14,18 @@ public class ChatClientWriter extends Thread
public static Scanner reader = new Scanner(System.in);
/** constructor
- * @param the socket and the client info */
+ * @param soc - the socket
+ * @param client - the CLient info */
+
public ChatClientWriter(Socket soc ,ChatClient client)
{
this.soc = soc;
this.client = client;
this.queue = new LinkedBlockingQueue<String>();
}
-
+
/** add message to queue.
- * @param message */
+ * @param line which is the message */
public void sendLine (String line)
{
try
@@ -37,7 +39,7 @@ public class ChatClientWriter extends Thread
}
/** writing the line and making sure the package will be pushed on the stream
- * @param the line and the client info */
+ * @param line and the client info */
public void println(String line)
{
try