Skip to content

Commit 6523c16

Browse files
authored
Update ServerConnection.java
1 parent 0ff603a commit 6523c16

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/clients/ServerConnection.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import java.net.Socket;
77
import java.util.concurrent.LinkedBlockingQueue;
88

9+
// ServerConnection Handles connections. It start the receiver's thread and sends messages to server.
910
public class ServerConnection
1011
{
1112
private Socket socket;
@@ -47,6 +48,7 @@ private void closeConnection() {
4748
}
4849
}
4950

51+
// Send messages to Server. When message.equals( "$" ), the connection is terminated.
5052
public void sendMessage(String clientMessage) {
5153
messageWriter.println(clientMessage);
5254
if ( clientMessage.equals("$") )

0 commit comments

Comments
 (0)