Skip to content
Snippets Groups Projects
Commit 3f0f0006 authored by Aylen Ricca's avatar Aylen Ricca
Browse files

del ip - port auto config

parent 701af3d5
No related branches found
No related tags found
No related merge requests found
...@@ -92,8 +92,6 @@ public class ChessTrackActivity extends Activity implements ...@@ -92,8 +92,6 @@ public class ChessTrackActivity extends Activity implements
alert.setPositiveButton("Ok", new DialogInterface.OnClickListener() { alert.setPositiveButton("Ok", new DialogInterface.OnClickListener() {
@Override @Override
public void onClick(DialogInterface dialog, int whichButton) { public void onClick(DialogInterface dialog, int whichButton) {
_manager.setConnection("192.168.1.101", 5555); // FIXME DELETE
// !!!!
Editable value = input.getText(); Editable value = input.getText();
if (value == null || value.toString().equals("") if (value == null || value.toString().equals("")
|| !value.toString().matches(IPV4_REGEX)) { || !value.toString().matches(IPV4_REGEX)) {
...@@ -133,7 +131,7 @@ public class ChessTrackActivity extends Activity implements ...@@ -133,7 +131,7 @@ public class ChessTrackActivity extends Activity implements
int port = Integer.parseInt(value.toString()); int port = Integer.parseInt(value.toString());
Log.i(TAG, "PORT=" + port); Log.i(TAG, "PORT=" + port);
//_manager.setConnection(ip, port); _manager.setConnection(ip, port);
} }
} }
}); });
......
...@@ -32,8 +32,8 @@ public class Client { ...@@ -32,8 +32,8 @@ public class Client {
public void EstablishConnection(String serverIp, int serverPort) { public void EstablishConnection(String serverIp, int serverPort) {
Log.i(TAG, "init client-server communication"); Log.i(TAG, "init client-server communication");
// this._serverIp = serverIp; this._serverIp = serverIp;
// this._serverPort = serverPort; this._serverPort = serverPort;
try { try {
Log.i(TAG, "Server on " + this._serverIp + ":" + _serverPort); Log.i(TAG, "Server on " + this._serverIp + ":" + _serverPort);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment