Allowing clients to specify host & port

This commit is contained in:
Samuel Carlsson 2013-07-26 10:24:49 +02:00
parent f3031c254b
commit 0e02f9d7d8

View File

@ -17,8 +17,13 @@ public class JadbConnection {
public JadbConnection() throws UnknownHostException, IOException
{
host = "localhost";
port = DEFAULTPORT;
this("localhost", DEFAULTPORT);
}
public JadbConnection(String host, int port) throws UnknownHostException, IOException
{
this.host = host;
this.port = port;
main = createTransport();
}