The P2PNetwork interface defines all methods used for accessing a p2p-network implementation.
P2PNetwork
109110111112113114115116117
*/ public void connect() { for (int i = 0; i < this.networks.size(); i++) { P2PNetwork network = (P2PNetwork)this.networks.get(i); network.connect(); } }
123124125126127128129130131
*/ public void disconnect() { for (int i = 0; i < this.networks.size(); i++) { P2PNetwork network = (P2PNetwork)this.networks.get(i); network.disconnect(); } }
144145146147148149150151152153154155
{ Node n = null; for (int i = 0; i < this.networks.size(); i++) { P2PNetwork network = (P2PNetwork)this.networks.get(i); n = network.getNode(node); if (n != null) { return n; } }