Commit 499eca52 authored by Susanti Gojali's avatar Susanti Gojali
Browse files

fixed

parent beb541a6
This diff is collapsed.
......@@ -285,12 +285,11 @@ public class TCPServer implements Runnable {
Thread trackerListener =new Thread(server);
trackerListener.start();
System.out.println("Waiting for client to connect..");
server.clientSocket = server.serverClientSocket.accept();
System.out.println("User connected to " + server.serverClientSocket.getLocalSocketAddress() + ", " + server.clientSocket.getLocalSocketAddress());
while(true)
{
System.out.println("Waiting for client to connect..");
server.clientSocket = server.serverClientSocket.accept();
// Membaca request dari client
BufferedReader inFromClient =new BufferedReader(new InputStreamReader(server.clientSocket.getInputStream()));
DataOutputStream outToClient = new DataOutputStream(server.clientSocket.getOutputStream());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment