mirror of https://github.com/rusefi/RomRaider.git
More code cleanup
git-svn-id: http://svn.3splooges.com/romraider-arch/trunk@187 d2e2e1cd-ba16-0410-be16-b7c4453c7c2d
This commit is contained in:
parent
738a3a4d58
commit
51953bef31
|
@ -436,7 +436,6 @@ public class ECUEditor extends JFrame implements WindowListener, PropertyChangeL
|
||||||
Socket socket = new java.net.Socket(serverName,serverPort); // create socket and connect
|
Socket socket = new java.net.Socket(serverName,serverPort); // create socket and connect
|
||||||
pw = new java.io.PrintWriter(socket.getOutputStream(), true); // create reader and writer
|
pw = new java.io.PrintWriter(socket.getOutputStream(), true); // create reader and writer
|
||||||
br = new java.io.BufferedReader(new java.io.InputStreamReader(socket.getInputStream()));
|
br = new java.io.BufferedReader(new java.io.InputStreamReader(socket.getInputStream()));
|
||||||
|
|
||||||
pw.println(args[0]); // send msg to the server
|
pw.println(args[0]); // send msg to the server
|
||||||
String answer = br.readLine(); // get data from the server
|
String answer = br.readLine(); // get data from the server
|
||||||
|
|
||||||
|
@ -448,7 +447,6 @@ public class ECUEditor extends JFrame implements WindowListener, PropertyChangeL
|
||||||
// after sending filename, exit
|
// after sending filename, exit
|
||||||
System.exit(0);
|
System.exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// launch editor
|
// launch editor
|
||||||
|
@ -462,13 +460,11 @@ public class ECUEditor extends JFrame implements WindowListener, PropertyChangeL
|
||||||
} catch (Exception ex) { ex.printStackTrace(); }
|
} catch (Exception ex) { ex.printStackTrace(); }
|
||||||
|
|
||||||
// listen for files
|
// listen for files
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
sock = new java.net.ServerSocket(serverPort); // create socket and bind to port
|
sock = new java.net.ServerSocket(serverPort); // create socket and bind to port
|
||||||
clientSocket = sock.accept(); // wait for client to connect
|
clientSocket = sock.accept(); // wait for client to connect
|
||||||
|
|
||||||
pw = new java.io.PrintWriter(clientSocket.getOutputStream(),true);
|
pw = new java.io.PrintWriter(clientSocket.getOutputStream(),true);
|
||||||
br = new java.io.BufferedReader(
|
br = new java.io.BufferedReader(
|
||||||
new java.io.InputStreamReader(clientSocket.getInputStream()));
|
new java.io.InputStreamReader(clientSocket.getInputStream()));
|
||||||
|
@ -483,8 +479,6 @@ public class ECUEditor extends JFrame implements WindowListener, PropertyChangeL
|
||||||
sock.close();
|
sock.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) { e.printStackTrace(); }
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue