Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Aryya Dwisatya W
IF3230-Tugas-Besar-Sister-2015
Commits
ab35a18e
Commit
ab35a18e
authored
Apr 26, 2015
by
adwisatya
Browse files
X
parent
c8107b45
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/client/TheAlchemistClient/build/classes/thealchemist/engine/Connection.class
View file @
ab35a18e
No preview for this file type
src/client/TheAlchemistClient/src/thealchemist/engine/Connection.java
View file @
ab35a18e
...
...
@@ -28,8 +28,8 @@ import org.json.JSONObject;
public
class
Connection
{
String
response
;
String
request
;
private
static
String
URL
=
"1
67.205.32.46
"
;
private
static
int
defPort
=
8025
;
private
static
String
URL
=
"1
92.168.0.107
"
;
private
static
int
defPort
=
6789
;
private
String
token
=
"kosong"
;
...
...
@@ -37,10 +37,6 @@ public class Connection {
Socket
miniSocket
=
new
Socket
(
URL
,
defPort
);
JSONObject
obj
=
new
JSONObject
(
JSON
);
// obj.put("method", "join");
// obj.put("ip", "167.205.32.46");
// obj.put("port", new Integer(8000));
PrintWriter
out
=
new
PrintWriter
(
new
BufferedWriter
(
new
OutputStreamWriter
(
miniSocket
.
getOutputStream
())));
out
.
println
(
obj
);
out
.
println
();
...
...
src/server/build/built-jar.properties
View file @
ab35a18e
#Sun, 26 Apr 2015
16:00:29
+0700
#Sun, 26 Apr 2015
20:27:08
+0700
F
\:\\
z~edo\\Kuliah
\\Semester\
6\\IF3230\
Siste
m\
Paralel\
dan\
Terdistribusi\\Tugas\
Akhir
\\src\\
server
=
C
\:\\
Users\\adwisatya\\Documents
\\Semester\
6\\
Tugas\\
IF3230\
Siste
r\\IF3230-Tugas-Besar-Sister-2015
\\src\\
server
=
src/server/build/classes/thealchemist/Client.class
View file @
ab35a18e
No preview for this file type
src/server/src/thealchemist/Client.java
View file @
ab35a18e
...
...
@@ -99,7 +99,7 @@ public class Client extends Thread{
public
void
sendToClient
(
String
tmpStr
)
throws
IOException
{
PrintStream
out
=
new
PrintStream
(
connectionSocket
.
getOutputStream
());
out
.
print
(
tmpStr
);
System
.
out
.
println
(
tmpStr
);
}
public
void
checkCommand
(
String
cmd
)
throws
IOException
,
NoSuchAlgorithmException
,
JSONException
{
cmdJoin
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment