Commit 8861f9c3 authored by Jonathan Sudibya's avatar Jonathan Sudibya
Browse files

force push

parent 8f547042
......@@ -3,4 +3,4 @@ do.depend=false
do.jar=true
javac.debug=true
javadoc.preview=true
user.properties.file=C:\\Users\\Kevin Zhong\\AppData\\Roaming\\NetBeans\\8.0.2\\build.properties
user.properties.file=C:\\Users\\Jonathan\\AppData\\Roaming\\NetBeans\\8.0.2\\build.properties
......@@ -3,7 +3,7 @@
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group>
<file>file:/C:/Users/Kevin%20Zhong/Documents/NetBeansProjects/Coba/src/client/TCPClient/src/TCPClient.java</file>
<file>file:/C:/Users/Jonathan/Documents/NetBeansProjects/GrandQuest/src/client/TCPClient/src/TCPClient.java</file>
</group>
</open-files>
</project-private>
compile.on.save=true
user.properties.file=C:\\Users\\Kevin Zhong\\AppData\\Roaming\\NetBeans\\8.0.2\\build.properties
user.properties.file=C:\\Users\\Jonathan\\AppData\\Roaming\\NetBeans\\8.0.2\\build.properties
......@@ -3,10 +3,7 @@
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group>
<file>file:/C:/Users/Kevin%20Zhong/Documents/NetBeansProjects/Coba/src/server/TCPServer/src/ConnectionHandler.java</file>
<file>file:/C:/Users/Kevin%20Zhong/Documents/NetBeansProjects/Coba/src/server/TCPServer/src/Client.java</file>
<file>file:/C:/Users/Kevin%20Zhong/Documents/NetBeansProjects/Coba/src/server/TCPServer/src/TCPServer.java</file>
<file>file:/C:/Users/Kevin%20Zhong/Documents/NetBeansProjects/Coba/src/server/TCPServer/src/EndpointMethod.java</file>
<file>file:/C:/Users/Jonathan/Documents/NetBeansProjects/GrandQuest/src/server/TCPServer/src/TCPServer.java</file>
</group>
</open-files>
</project-private>
......@@ -52,8 +52,11 @@ class TCPServer {
while (active) {
try {
while ((trackerSentence = inFromTracker.readLine()) == null) {
System.out.println(i);
// System.out.println(i);
inFromTracker = new BufferedReader(new InputStreamReader(conSocket.getInputStream()));
resultJson.put("status", "ok");
outToTracker.write(resultJson.toString().getBytes());
resultJson.clear();
}
System.out.println("trackerSentence telah terbaca");
System.out.println("TrackerSentence: " + trackerSentence);
......
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