Skip to content
Snippets Groups Projects
Commit f7e33ea4 authored by Mario Tressa's avatar Mario Tressa
Browse files

untested server

parent acd2fc88
No related merge requests found
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<GradleProjectSettings> <GradleProjectSettings>
<option name="distributionType" value="LOCAL" /> <option name="distributionType" value="LOCAL" />
<option name="externalProjectPath" value="$PROJECT_DIR$" /> <option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleHome" value="C:\Program Files\Android\Android Studio1\gradle\gradle-2.2.1" /> <option name="gradleHome" value="E:\Program Files\Android\Android Studio\gradle\gradle-2.2.1" />
<option name="modules"> <option name="modules">
<set> <set>
<option value="$PROJECT_DIR$" /> <option value="$PROJECT_DIR$" />
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<project version="4"> <project version="4">
<component name="ProjectModuleManager"> <component name="ProjectModuleManager">
<modules> <modules>
<module fileurl="file://$PROJECT_DIR$/Sister.iml" filepath="$PROJECT_DIR$/Sister.iml" />
<module fileurl="file://$PROJECT_DIR$/Sister2.iml" filepath="$PROJECT_DIR$/Sister2.iml" /> <module fileurl="file://$PROJECT_DIR$/Sister2.iml" filepath="$PROJECT_DIR$/Sister2.iml" />
<module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" /> <module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
</modules> </modules>
......
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="java-gradle" name="Java-Gradle">
<configuration>
<option name="BUILD_FOLDER_PATH" value="$MODULE_DIR$/build" />
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" inherit-compiler-output="false">
<output url="file://$MODULE_DIR$/build/classes/main" />
<output-test url="file://$MODULE_DIR$/build/classes/test" />
<exclude-output />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
...@@ -31,7 +31,6 @@ public class Pengguna { ...@@ -31,7 +31,6 @@ public class Pengguna {
private int delay = 8; private int delay = 8;
private int x, y; private int x, y;
private JSONArray findRes; private JSONArray findRes;
boolean sudahDiambil = false;
public JSONArray getFindRes() { public JSONArray getFindRes() {
return findRes; return findRes;
...@@ -118,15 +117,7 @@ public class Pengguna { ...@@ -118,15 +117,7 @@ public class Pengguna {
public void setY(int y) { public void setY(int y) {
this.y = y; this.y = y;
} }
public boolean isTake(){
return sudahDiambil;
}
public void setTake(boolean take){
sudahDiambil = take;
}
public Pengguna(String name, String pass, String tok, Long waktu, int[] invent, int xx, int yy){ public Pengguna(String name, String pass, String tok, Long waktu, int[] invent, int xx, int yy){
username = name; username = name;
password = pass; password = pass;
......
This diff is collapsed.
...@@ -21,7 +21,7 @@ public class SisterTCPServer { ...@@ -21,7 +21,7 @@ public class SisterTCPServer {
public static void main(String argv[]) throws IOException, JSONException{ public static void main(String argv[]) throws IOException, JSONException{
ServerSocket mainSocket; ServerSocket mainSocket;
String ipAdd; String ipAdd;
ipAdd = InetAddress.getLocalHost().getHostAddress(); ipAdd = "167.205.89.124";
mainSocket = new ServerSocket(port); mainSocket = new ServerSocket(port);
Thread server = new ServerHandler(mainSocket, ipAdd); Thread server = new ServerHandler(mainSocket, ipAdd);
server.start(); server.start();
......
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