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
Tags ENTREGA
No related merge requests found
......@@ -92,8 +92,6 @@ public class ChessTrackActivity extends Activity implements
alert.setPositiveButton("Ok", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int whichButton) {
_manager.setConnection("192.168.1.101", 5555); // FIXME DELETE
// !!!!
Editable value = input.getText();
if (value == null || value.toString().equals("")
|| !value.toString().matches(IPV4_REGEX)) {
......@@ -133,7 +131,7 @@ public class ChessTrackActivity extends Activity implements
int port = Integer.parseInt(value.toString());
Log.i(TAG, "PORT=" + port);
//_manager.setConnection(ip, port);
_manager.setConnection(ip, port);
}
}
});
......
......@@ -32,8 +32,8 @@ public class Client {
public void EstablishConnection(String serverIp, int serverPort) {
Log.i(TAG, "init client-server communication");
// this._serverIp = serverIp;
// this._serverPort = serverPort;
this._serverIp = serverIp;
this._serverPort = serverPort;
try {
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