59 |
if(seedAddresses != null) |
if(seedAddresses != null) |
60 |
gisp.addSeedAddresses(seedAddresses); |
gisp.addSeedAddresses(seedAddresses); |
61 |
gisp.start(new String[] {"strength_min=1"}); |
gisp.start(new String[] {"strength_min=1"}); |
62 |
pa("Number of known peers in the network: " + String.valueOf(gisp.getNumOfPeers())); |
|
63 |
|
/** Doesn't work...why ? |
64 |
|
Thread thisThread = Thread.currentThread(); |
65 |
|
thisThread.sleep(5000); |
66 |
|
pa("Number of known peers in the network: " + String.valueOf(this.gisp.getNumOfPeers())); |
67 |
|
*/ |
68 |
} |
} |
69 |
|
|
70 |
public GispP2PMap(String[] seedAddresses) throws Exception { |
public GispP2PMap(String[] seedAddresses) throws Exception { |