We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ff603a commit 6523c16Copy full SHA for 6523c16
src/clients/ServerConnection.java
@@ -6,6 +6,7 @@
6
import java.net.Socket;
7
import java.util.concurrent.LinkedBlockingQueue;
8
9
+// ServerConnection Handles connections. It start the receiver's thread and sends messages to server.
10
public class ServerConnection
11
{
12
private Socket socket;
@@ -47,6 +48,7 @@ private void closeConnection() {
47
48
}
49
50
51
+ // Send messages to Server. When message.equals( "$" ), the connection is terminated.
52
public void sendMessage(String clientMessage) {
53
messageWriter.println(clientMessage);
54
if ( clientMessage.equals("$") )
0 commit comments