87 |
GispPeer peer = null; |
GispPeer peer = null; |
88 |
while(peer == null) { |
while(peer == null) { |
89 |
try { |
try { |
90 |
peer = new GispPeer(publishedPool, |
if(publishedPool == null && gateway_port < 0) { |
91 |
new TransientPool(indexTypes), |
new GispP2PMap(gisp_port, seeds); |
92 |
gisp_port, seeds); |
p(""); |
93 |
|
p("No pools to publish and no gateway requested."); |
94 |
|
p("Plain GISP P2P map started instead of a full peer."); |
95 |
|
p(""); |
96 |
|
break; // Leaving peer null! |
97 |
|
} else { |
98 |
|
peer = new GispPeer(publishedPool, |
99 |
|
new TransientPool(indexTypes), |
100 |
|
gisp_port, seeds); |
101 |
|
} |
102 |
} catch(java.net.BindException _) { |
} catch(java.net.BindException _) { |
103 |
p("Port "+gisp_port+" couldn't be used."); |
p("Port "+gisp_port+" couldn't be used."); |
104 |
gisp_port++; |
gisp_port++; |