[P2play-commit] SF.net SVN: p2play: [56] trunk/P2PlayBoot/src/main/java/org/p2play/boot/ pastry
Status: Pre-Alpha
Brought to you by:
tisoft
|
From: <ti...@us...> - 2007-07-02 20:17:21
|
Revision: 56
http://p2play.svn.sourceforge.net/p2play/?rev=56&view=rev
Author: tisoft
Date: 2007-07-02 13:17:13 -0700 (Mon, 02 Jul 2007)
Log Message:
-----------
improved local discovery
added locally discovered nodes to test connect dialog
Modified Paths:
--------------
P2PlayLegacy/src/de/upb/mmog/net/test/gui/logon/ConnectDialog.java
trunk/P2PlayBoot/src/main/java/org/p2play/boot/discovery/LocalDiscovery.java
trunk/P2PlayBoot/src/main/java/org/p2play/boot/discovery/ServiceInfo.java
trunk/P2PlayBoot/src/main/java/org/p2play/boot/discovery/ServiceListener.java
trunk/P2PlayBoot/src/main/java/org/p2play/boot/pastry/Pastry.java
Modified: P2PlayLegacy/src/de/upb/mmog/net/test/gui/logon/ConnectDialog.java
===================================================================
--- P2PlayLegacy/src/de/upb/mmog/net/test/gui/logon/ConnectDialog.java 2007-07-02 13:02:39 UTC (rev 55)
+++ P2PlayLegacy/src/de/upb/mmog/net/test/gui/logon/ConnectDialog.java 2007-07-02 20:17:13 UTC (rev 56)
@@ -7,8 +7,10 @@
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
+import java.awt.Insets;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
+import java.io.IOException;
import java.net.Inet4Address;
import java.net.InetAddress;
import java.net.InetSocketAddress;
@@ -17,585 +19,705 @@
import java.util.Enumeration;
import javax.swing.ButtonGroup;
+import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
+import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import javax.swing.JRadioButton;
+import javax.swing.JScrollPane;
+import javax.swing.ListModel;
+import org.p2play.boot.discovery.LocalDiscovery;
+import org.p2play.boot.discovery.ServiceInfo;
+import org.p2play.boot.discovery.ServiceListener;
+
import de.upb.mmog.net.test.gui.util.HistoryManager;
import de.upb.mmog.net.test.gui.util.JComboBoxWithHistory;
+/**
+ * This code was edited or generated using CloudGarden's Jigloo SWT/Swing GUI
+ * Builder, which is free for non-commercial use. If Jigloo is being used
+ * commercially (ie, by a corporation, company or business for any purpose
+ * whatever) then you should purchase a license for each developer using Jigloo.
+ * Please visit www.cloudgarden.com for details. Use of Jigloo implies
+ * acceptance of these licensing terms. A COMMERCIAL LICENSE HAS NOT BEEN
+ * PURCHASED FOR THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED LEGALLY FOR
+ * ANY CORPORATE OR COMMERCIAL PURPOSE.
+ */
public class ConnectDialog extends JFrame {
-
+
private JPanel jContentPane = null;
- private JLabel jLabel1 = null;
+ private JLabel jLabel1 = null;
- private JComboBoxWithHistory localPortComboBox = null;
+ private JComboBoxWithHistory localPortComboBox = null;
- private JButton connectButton = null;
+ private JButton connectButton = null;
- private JButton cancelButton = null;
+ private JButton cancelButton = null;
- private boolean canceled;
+ private boolean canceled;
- private boolean closed;
+ private boolean closed;
- private JComboBoxWithHistory userComboBox = null;
+ private JComboBoxWithHistory userComboBox = null;
- private JPasswordField passwordField = null;
+ private JPasswordField passwordField = null;
- private JLabel jLabel2 = null;
+ private JLabel jLabel2 = null;
- private JLabel jLabel3 = null;
+ private JLabel jLabel3 = null;
- private JLabel jLabel = null;
+ private JLabel jLabel = null;
- private JRadioButton httpBootRadioButton = null;
+ private JRadioButton httpBootRadioButton = null;
- private JRadioButton directBootRadioButton = null;
+ private JRadioButton directBootRadioButton = null;
- private JLabel httpBootURLLabel = null;
+ private JLabel httpBootURLLabel = null;
- private JLabel directBootHostLabel = null;
+ private JLabel directBootHostLabel = null;
- private JLabel directBootPortLabel = null;
+ private JLabel directBootPortLabel = null;
- private JComboBoxWithHistory directBootPortComboBox = null;
+ private JComboBoxWithHistory directBootPortComboBox = null;
- private JComboBoxWithHistory directBootHostComboBox = null;
+ private JComboBoxWithHistory directBootHostComboBox = null;
- private JComboBoxWithHistory httpBootURLComboBox = null;
+ private JComboBoxWithHistory httpBootURLComboBox = null;
- private JLabel jLabel4 = null;
+ private JList discoveryServiceList;
- private JComboBox localIPComboBox = null;
+ private JLabel jLabel4 = null;
+ private JScrollPane jScrollPane1;
+ private JRadioButton discoveryBootRadioButton;
- private HistoryManager historyManager;
- /**
- * This is the default constructor
- */
- private ConnectDialog() {
- super();
-
- historyManager=HistoryManager.loadHM("ConnectDialog");
-
- initialize();
- closed = false;
-
- getDirectBootRadioButton().setSelected(true);
- enableTextfields();
- }
+ private JComboBox localIPComboBox = null;
- /**
- * This method initializes this
- *
- * @return void
- */
- private void initialize() {
- this.setSize(609, 300);
- this.setTitle("Connection Dialog");
- this.setName("Connection Dialog");
- this
- .setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- this.setContentPane(getJContentPane());
- }
+ private HistoryManager historyManager;
- /**
- * This method initializes jContentPane
- *
- * @return javax.swing.JPanel
- */
- private JPanel getJContentPane() {
- if (jContentPane == null) {
- GridBagConstraints gridBagConstraints10 = new GridBagConstraints();
- gridBagConstraints10.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints10.gridy = 6;
- gridBagConstraints10.weightx = 1.0;
- gridBagConstraints10.gridx = 1;
- GridBagConstraints gridBagConstraints9 = new GridBagConstraints();
- gridBagConstraints9.gridx = 0;
- gridBagConstraints9.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints9.gridy = 6;
- jLabel4 = new JLabel();
- jLabel4.setText("Local IP:");
- GridBagConstraints gridBagConstraints81 = new GridBagConstraints();
- gridBagConstraints81.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints81.gridy = 2;
- gridBagConstraints81.weightx = 1.0;
- gridBagConstraints81.gridx = 1;
- GridBagConstraints gridBagConstraints71 = new GridBagConstraints();
- gridBagConstraints71.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints71.gridy = 4;
- gridBagConstraints71.weightx = 1.0;
- gridBagConstraints71.gridx = 1;
- GridBagConstraints gridBagConstraints6 = new GridBagConstraints();
- gridBagConstraints6.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints6.gridy = 5;
- gridBagConstraints6.weightx = 1.0;
- gridBagConstraints6.gridx = 1;
- GridBagConstraints gridBagConstraints5 = new GridBagConstraints();
- gridBagConstraints5.gridx = 0;
- gridBagConstraints5.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints5.gridy = 5;
- directBootPortLabel = new JLabel();
- directBootPortLabel.setText("remote port:");
- GridBagConstraints gridBagConstraints42 = new GridBagConstraints();
- gridBagConstraints42.gridx = 0;
- gridBagConstraints42.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints42.gridy = 4;
- directBootHostLabel = new JLabel();
- directBootHostLabel.setText("remote host:");
- GridBagConstraints gridBagConstraints3 = new GridBagConstraints();
- gridBagConstraints3.gridx = 0;
- gridBagConstraints3.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints3.gridy = 2;
- httpBootURLLabel = new JLabel();
- httpBootURLLabel.setText("boot URL:");
- GridBagConstraints gridBagConstraints22 = new GridBagConstraints();
- gridBagConstraints22.gridx = 0;
- gridBagConstraints22.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints22.gridy = 3;
- GridBagConstraints gridBagConstraints1 = new GridBagConstraints();
- gridBagConstraints1.gridx = 0;
- gridBagConstraints1.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints1.gridwidth = 2;
- gridBagConstraints1.gridy = 1;
- GridBagConstraints gridBagConstraints = new GridBagConstraints();
- gridBagConstraints.gridx = 1;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.gridy = 8;
- jLabel = new JLabel();
- jLabel
- .setText("Please open this port in your firewall for both TCP and UDP.");
- GridBagConstraints gridBagConstraints41 = new GridBagConstraints();
- gridBagConstraints41.gridx = 0;
- gridBagConstraints41.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints41.gridy = 10;
- jLabel3 = new JLabel();
- jLabel3.setText("password:");
- GridBagConstraints gridBagConstraints31 = new GridBagConstraints();
- gridBagConstraints31.gridx = 0;
- gridBagConstraints31.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints31.gridy = 9;
- jLabel2 = new JLabel();
- jLabel2.setText("user:");
- GridBagConstraints gridBagConstraints21 = new GridBagConstraints();
- gridBagConstraints21.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints21.gridy = 10;
- gridBagConstraints21.weightx = 1.0;
- gridBagConstraints21.gridx = 1;
- GridBagConstraints gridBagConstraints11 = new GridBagConstraints();
- gridBagConstraints11.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints11.gridy = 9;
- gridBagConstraints11.weightx = 1.0;
- gridBagConstraints11.gridx = 1;
- GridBagConstraints gridBagConstraints8 = new GridBagConstraints();
- gridBagConstraints8.gridx = 0;
- gridBagConstraints8.gridy = 11;
- GridBagConstraints gridBagConstraints7 = new GridBagConstraints();
- gridBagConstraints7.gridx = 1;
- gridBagConstraints7.gridy = 11;
- GridBagConstraints gridBagConstraints4 = new GridBagConstraints();
- gridBagConstraints4.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints4.gridy = 7;
- gridBagConstraints4.weightx = 1.0;
- gridBagConstraints4.gridx = 1;
- GridBagConstraints gridBagConstraints2 = new GridBagConstraints();
- gridBagConstraints2.gridx = 0;
- gridBagConstraints2.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints2.gridy = 7;
- jLabel1 = new JLabel();
- jLabel1.setText("local port:");
- jContentPane = new JPanel();
- jContentPane.setLayout(new GridBagLayout());
- jContentPane.add(jLabel1, gridBagConstraints2);
- jContentPane.add(getLocalPortComboBox(), gridBagConstraints4);
- jContentPane.add(getConnectButton(), gridBagConstraints7);
- jContentPane.add(getCancelButton(), gridBagConstraints8);
- jContentPane.add(getUserComboBox(), gridBagConstraints11);
- jContentPane.add(getPasswordField(), gridBagConstraints21);
- jContentPane.add(jLabel2, gridBagConstraints31);
- jContentPane.add(jLabel3, gridBagConstraints41);
- jContentPane.add(jLabel, gridBagConstraints);
- jContentPane.add(getHttpBootRadioButton(), gridBagConstraints1);
- jContentPane.add(getDirectBootRadioButton(), gridBagConstraints22);
- jContentPane.add(httpBootURLLabel, gridBagConstraints3);
- jContentPane.add(directBootHostLabel, gridBagConstraints42);
- jContentPane.add(directBootPortLabel, gridBagConstraints5);
- jContentPane.add(getDirectBootPortComboBox(), gridBagConstraints6);
- jContentPane
- .add(getDirectBootHostComboBox(), gridBagConstraints71);
- jContentPane.add(getHttpBootURLComboBox(), gridBagConstraints81);
- jContentPane.add(jLabel4, gridBagConstraints9);
- jContentPane.add(getLocalIPComboBox(), gridBagConstraints10);
+ /**
+ * This is the default constructor
+ */
+ private ConnectDialog() {
+ super();
- ButtonGroup bg = new ButtonGroup();
- bg.add(getHttpBootRadioButton());
- bg.add(getDirectBootRadioButton());
- }
- return jContentPane;
- }
+ historyManager = HistoryManager.loadHM("ConnectDialog");
- /**
- * This method initializes jTextField2
- *
- * @return javax.swing.JTextField
- */
- private JComboBoxWithHistory getLocalPortComboBox() {
- if (localPortComboBox == null) {
- localPortComboBox = new JComboBoxWithHistory(historyManager,"localPortTextField");
- //localPortTextField.setColumns(5);
- //localPortTextField.setText("10000");
- }
- return localPortComboBox;
- }
+ initialize();
+ closed = false;
- /**
- * This method initializes jButton
- *
- * @return javax.swing.JButton
- */
- private JButton getConnectButton() {
- if (connectButton == null) {
- connectButton = new JButton();
- connectButton.setText("Connect");
- connectButton
- .addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent e) {
- if (getUser() != null
- && !getUser().trim().equals("")) {
- canceled = false;
- closed = true;
- setVisible(false);
- getDirectBootHostComboBox().saveHistory();
- getHttpBootURLComboBox().saveHistory();
- getDirectBootPortComboBox().saveHistory();
- getLocalPortComboBox().saveHistory();
- getUserComboBox().saveHistory();
- }
- }
- });
- }
- return connectButton;
- }
-
- /**
- * This method initializes jButton1
- *
- * @return javax.swing.JButton
- */
- private JButton getCancelButton() {
- if (cancelButton == null) {
- cancelButton = new JButton();
- cancelButton.setText("Cancel");
- cancelButton.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent e) {
- canceled = true;
- closed = true;
- setVisible(false);
- }
- });
- }
- return cancelButton;
- }
+ getDirectBootRadioButton().setSelected(true);
+ enableTextfields();
+ }
- public static final ConnectDialog showConnectDialog() {
- final ConnectDialog cd = new ConnectDialog();
+ /**
+ * This method initializes this
+ *
+ * @return void
+ */
+ private void initialize() {
+ this.setSize(609, 481);
+ this.setTitle("Connection Dialog");
+ this.setName("Connection Dialog");
+ this
+ .setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
+ this.setContentPane(getJContentPane());
+ }
- new Thread() {
- @Override
+ /**
+ * This method initializes jContentPane
+ *
+ * @return javax.swing.JPanel
+ */
+ private JPanel getJContentPane() {
+ if (jContentPane == null) {
+ GridBagConstraints gridBagConstraints10 = new GridBagConstraints();
+ gridBagConstraints10.fill = java.awt.GridBagConstraints.HORIZONTAL;
+ gridBagConstraints10.gridy = 6;
+ gridBagConstraints10.weightx = 1.0;
+ gridBagConstraints10.gridx = 1;
+ GridBagConstraints gridBagConstraints9 = new GridBagConstraints();
+ gridBagConstraints9.gridx = 0;
+ gridBagConstraints9.anchor = java.awt.GridBagConstraints.WEST;
+ gridBagConstraints9.gridy = 6;
+ jLabel4 = new JLabel();
+ jLabel4.setText("Local IP:");
+ GridBagConstraints gridBagConstraints81 = new GridBagConstraints();
+ gridBagConstraints81.fill = java.awt.GridBagConstraints.HORIZONTAL;
+ gridBagConstraints81.gridy = 2;
+ gridBagConstraints81.weightx = 1.0;
+ gridBagConstraints81.gridx = 1;
+ GridBagConstraints gridBagConstraints71 = new GridBagConstraints();
+ gridBagConstraints71.fill = java.awt.GridBagConstraints.HORIZONTAL;
+ gridBagConstraints71.gridy = 4;
+ gridBagConstraints71.weightx = 1.0;
+ gridBagConstraints71.gridx = 1;
+ GridBagConstraints gridBagConstraints6 = new GridBagConstraints();
+ gridBagConstraints6.fill = java.awt.GridBagConstraints.HORIZONTAL;
+ gridBagConstraints6.gridy = 5;
+ gridBagConstraints6.weightx = 1.0;
+ gridBagConstraints6.gridx = 1;
+ GridBagConstraints gridBagConstraints5 = new GridBagConstraints();
+ gridBagConstraints5.gridx = 0;
+ gridBagConstraints5.anchor = java.awt.GridBagConstraints.WEST;
+ gridBagConstraints5.gridy = 5;
+ directBootPortLabel = new JLabel();
+ directBootPortLabel.setText("remote port:");
+ GridBagConstraints gridBagConstraints42 = new GridBagConstraints();
+ gridBagConstraints42.gridx = 0;
+ gridBagConstraints42.anchor = java.awt.GridBagConstraints.WEST;
+ gridBagConstraints42.gridy = 4;
+ directBootHostLabel = new JLabel();
+ directBootHostLabel.setText("remote host:");
+ GridBagConstraints gridBagConstraints3 = new GridBagConstraints();
+ gridBagConstraints3.gridx = 0;
+ gridBagConstraints3.anchor = java.awt.GridBagConstraints.WEST;
+ gridBagConstraints3.gridy = 2;
+ httpBootURLLabel = new JLabel();
+ httpBootURLLabel.setText("boot URL:");
+ GridBagConstraints gridBagConstraints22 = new GridBagConstraints();
+ gridBagConstraints22.gridx = 0;
+ gridBagConstraints22.anchor = java.awt.GridBagConstraints.WEST;
+ gridBagConstraints22.gridy = 3;
+ GridBagConstraints gridBagConstraints1 = new GridBagConstraints();
+ gridBagConstraints1.gridx = 0;
+ gridBagConstraints1.anchor = java.awt.GridBagConstraints.WEST;
+ gridBagConstraints1.gridwidth = 2;
+ gridBagConstraints1.gridy = 1;
+ GridBagConstraints gridBagConstraints = new GridBagConstraints();
+ gridBagConstraints.gridx = 1;
+ gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
+ gridBagConstraints.gridy = 8;
+ jLabel = new JLabel();
+ jLabel
+ .setText("Please open this port in your firewall for both TCP and UDP.");
+ GridBagConstraints gridBagConstraints41 = new GridBagConstraints();
+ gridBagConstraints41.gridx = 0;
+ gridBagConstraints41.anchor = java.awt.GridBagConstraints.WEST;
+ gridBagConstraints41.gridy = 10;
+ jLabel3 = new JLabel();
+ jLabel3.setText("password:");
+ GridBagConstraints gridBagConstraints31 = new GridBagConstraints();
+ gridBagConstraints31.gridx = 0;
+ gridBagConstraints31.anchor = java.awt.GridBagConstraints.WEST;
+ gridBagConstraints31.gridy = 9;
+ jLabel2 = new JLabel();
+ jLabel2.setText("user:");
+ GridBagConstraints gridBagConstraints21 = new GridBagConstraints();
+ gridBagConstraints21.fill = java.awt.GridBagConstraints.HORIZONTAL;
+ gridBagConstraints21.gridy = 10;
+ gridBagConstraints21.weightx = 1.0;
+ gridBagConstraints21.gridx = 1;
+ GridBagConstraints gridBagConstraints11 = new GridBagConstraints();
+ gridBagConstraints11.fill = java.awt.GridBagConstraints.HORIZONTAL;
+ gridBagConstraints11.gridy = 9;
+ gridBagConstraints11.weightx = 1.0;
+ gridBagConstraints11.gridx = 1;
+ GridBagConstraints gridBagConstraints8 = new GridBagConstraints();
+ gridBagConstraints8.gridx = 0;
+ gridBagConstraints8.gridy = 11;
+ GridBagConstraints gridBagConstraints7 = new GridBagConstraints();
+ gridBagConstraints7.gridx = 1;
+ gridBagConstraints7.gridy = 11;
+ GridBagConstraints gridBagConstraints4 = new GridBagConstraints();
+ gridBagConstraints4.fill = java.awt.GridBagConstraints.HORIZONTAL;
+ gridBagConstraints4.gridy = 7;
+ gridBagConstraints4.weightx = 1.0;
+ gridBagConstraints4.gridx = 1;
+ GridBagConstraints gridBagConstraints2 = new GridBagConstraints();
+ gridBagConstraints2.gridx = 0;
+ gridBagConstraints2.anchor = java.awt.GridBagConstraints.WEST;
+ gridBagConstraints2.gridy = 7;
+ jLabel1 = new JLabel();
+ jLabel1.setText("local port:");
+ jContentPane = new JPanel();
+ GridBagLayout jContentPaneLayout = new GridBagLayout();
+ jContentPane.setLayout(jContentPaneLayout);
+ jContentPaneLayout.columnWeights = new double[] { 0.1, 0.1 };
+ jContentPaneLayout.columnWidths = new int[] { 7, 7 };
+ jContentPaneLayout.rowWeights = new double[] { 0.1, 0.1, 0.1, 0.1,
+ 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1 };
+ jContentPaneLayout.rowHeights = new int[] { 7, 7, 7, 7, 7, 7, 20,
+ 7, 7, 7, 20, 7, 7, 7 };
+ jContentPane.add(jLabel1, new GridBagConstraints(0, 9, 1, 1, 0.0,
+ 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE,
+ new Insets(0, 0, 0, 0), 0, 0));
+ jContentPane.add(getLocalPortComboBox(),
+ new GridBagConstraints(1, 9, 1, 1, 1.0, 0.0,
+ GridBagConstraints.CENTER,
+ GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0,
+ 0), 0, 0));
+ jContentPane.add(getConnectButton(), new GridBagConstraints(1, 13,
+ 1, 1, 0.0, 0.0, GridBagConstraints.CENTER,
+ GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
+ jContentPane.add(getCancelButton(), new GridBagConstraints(0, 13,
+ 1, 1, 0.0, 0.0, GridBagConstraints.CENTER,
+ GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
+ jContentPane.add(getUserComboBox(),
+ new GridBagConstraints(1, 11, 1, 1, 1.0, 0.0,
+ GridBagConstraints.CENTER,
+ GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0,
+ 0), 0, 0));
+ jContentPane.add(getPasswordField(),
+ new GridBagConstraints(1, 12, 1, 1, 1.0, 0.0,
+ GridBagConstraints.CENTER,
+ GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0,
+ 0), 0, 0));
+ jContentPane.add(jLabel2, new GridBagConstraints(0, 11, 1, 1, 0.0,
+ 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE,
+ new Insets(0, 0, 0, 0), 0, 0));
+ jContentPane.add(jLabel3, new GridBagConstraints(0, 12, 1, 1, 0.0,
+ 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE,
+ new Insets(0, 0, 0, 0), 0, 0));
+ jContentPane.add(jLabel,
+ new GridBagConstraints(1, 10, 1, 1, 0.0, 0.0,
+ GridBagConstraints.CENTER,
+ GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0,
+ 0), 0, 0));
+ jContentPane.add(getHttpBootRadioButton(), gridBagConstraints1);
+ jContentPane.add(getDirectBootRadioButton(), gridBagConstraints22);
+ jContentPane.add(httpBootURLLabel, gridBagConstraints3);
+ jContentPane.add(directBootHostLabel, gridBagConstraints42);
+ jContentPane.add(directBootPortLabel, gridBagConstraints5);
+ jContentPane.add(getDirectBootPortComboBox(), gridBagConstraints6);
+ jContentPane.add(getDirectBootHostComboBox(), gridBagConstraints71);
+ jContentPane.add(getHttpBootURLComboBox(), gridBagConstraints81);
+ jContentPane.add(jLabel4, new GridBagConstraints(0, 8, 1, 1, 0.0,
+ 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE,
+ new Insets(0, 0, 0, 0), 0, 0));
+ jContentPane.add(getLocalIPComboBox(),
+ new GridBagConstraints(1, 8, 1, 1, 1.0, 0.0,
+ GridBagConstraints.CENTER,
+ GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0,
+ 0), 0, 0));
+ jContentPane.add(getDiscoveryBootRadioButton(),
+ new GridBagConstraints(0, 6, 1, 1, 0.0, 0.0,
+ GridBagConstraints.CENTER, GridBagConstraints.NONE,
+ new Insets(0, 0, 0, 0), 0, 0));
+ jContentPane.add(getJScrollPane1(), new GridBagConstraints(1, 7, 1,
+ 1, 0.0, 0.0, GridBagConstraints.EAST,
+ GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
+
+ ButtonGroup bg = new ButtonGroup();
+ bg.add(getHttpBootRadioButton());
+ bg.add(getDirectBootRadioButton());
+ bg.add(getDiscoveryBootRadioButton());
+ }
+ return jContentPane;
+ }
+
+ /**
+ * This method initializes jTextField2
+ *
+ * @return javax.swing.JTextField
+ */
+ private JComboBoxWithHistory getLocalPortComboBox() {
+ if (localPortComboBox == null) {
+ localPortComboBox = new JComboBoxWithHistory(historyManager,
+ "localPortTextField");
+ // localPortTextField.setColumns(5);
+ // localPortTextField.setText("10000");
+ }
+ return localPortComboBox;
+ }
+
+ /**
+ * This method initializes jButton
+ *
+ * @return javax.swing.JButton
+ */
+ private JButton getConnectButton() {
+ if (connectButton == null) {
+ connectButton = new JButton();
+ connectButton.setText("Connect");
+ connectButton
+ .addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent e) {
+ if (getUser() != null
+ && !getUser().trim().equals("")) {
+ canceled = false;
+ closed = true;
+ setVisible(false);
+ getDirectBootHostComboBox().saveHistory();
+ getHttpBootURLComboBox().saveHistory();
+ getDirectBootPortComboBox().saveHistory();
+ getLocalPortComboBox().saveHistory();
+ getUserComboBox().saveHistory();
+ }
+ }
+ });
+ }
+ return connectButton;
+ }
+
+ /**
+ * This method initializes jButton1
+ *
+ * @return javax.swing.JButton
+ */
+ private JButton getCancelButton() {
+ if (cancelButton == null) {
+ cancelButton = new JButton();
+ cancelButton.setText("Cancel");
+ cancelButton.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent e) {
+ canceled = true;
+ closed = true;
+ setVisible(false);
+ }
+ });
+ }
+ return cancelButton;
+ }
+
+ public static final ConnectDialog showConnectDialog() {
+ final ConnectDialog cd = new ConnectDialog();
+
+ new Thread() {
+ @Override
public void run() {
- cd.setVisible(true);
- };
- }.start();
+ cd.setVisible(true);
+ };
+ }.start();
- while (!cd.closed) {
- try {
- Thread.sleep(100);
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
+ while (!cd.closed) {
+ try {
+ Thread.sleep(100);
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
- return cd;
- }
+ return cd;
+ }
- private void fillLocalIPComboBox() {
- try {
- NetworkInterface iface = null;
+ private void fillLocalIPComboBox() {
+ try {
+ NetworkInterface iface = null;
- for (Enumeration ifaces = NetworkInterface.getNetworkInterfaces(); ifaces
- .hasMoreElements();) {
- iface = (NetworkInterface) ifaces.nextElement();
- InetAddress ia = null;
- for (Enumeration ips = iface.getInetAddresses(); ips
- .hasMoreElements();) {
- ia = (InetAddress) ips.nextElement();
- //only add Inetv4 addresses for now
- if(ia instanceof Inet4Address) {
+ for (Enumeration ifaces = NetworkInterface.getNetworkInterfaces(); ifaces
+ .hasMoreElements();) {
+ iface = (NetworkInterface) ifaces.nextElement();
+ InetAddress ia = null;
+ for (Enumeration ips = iface.getInetAddresses(); ips
+ .hasMoreElements();) {
+ ia = (InetAddress) ips.nextElement();
+ // only add Inetv4 addresses for now
+ if (ia instanceof Inet4Address) {
getLocalIPComboBox().addItem(ia.getHostAddress());
}
- }
- }
- } catch (Exception e) {
- e.printStackTrace();
- }
+ }
+ }
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
- }
+ }
- public boolean isCanceled() {
- return canceled;
- }
+ public boolean isCanceled() {
+ return canceled;
+ }
- public boolean isBootHttp() {
- return getHttpBootRadioButton().isSelected();
- }
+ public boolean isBootHttp() {
+ return getHttpBootRadioButton().isSelected();
+ }
- public boolean isBootDirect() {
- return !isBootHttp();
- }
+ public boolean isBootDirect() {
+ return getDirectBootRadioButton().isSelected();
+ }
- public String getHttpURL() {
- return getHttpBootURLComboBox().getSelectedItem().toString();
- }
+ public String getHttpURL() {
+ return getHttpBootURLComboBox().getSelectedItem().toString();
+ }
- public InetSocketAddress getDirectAddress() {
- return new InetSocketAddress(getDirectBootHostComboBox().getSelectedItem().toString(),
- Integer.parseInt(getDirectBootPortComboBox().getSelectedItem().toString()));
- }
+ public InetSocketAddress getDirectAddress() {
+ if(getDiscoveryBootRadioButton().isSelected()){
+ return ((ServiceInfo)discoveryServiceList.getSelectedValue()).getAddress();
+ }else
+ return new InetSocketAddress(getDirectBootHostComboBox()
+ .getSelectedItem().toString(), Integer
+ .parseInt(getDirectBootPortComboBox().getSelectedItem()
+ .toString()));
+ }
- public String getlocalAddress() {
- return getLocalIPComboBox().getSelectedItem().toString();
- }
+ public String getlocalAddress() {
+ return getLocalIPComboBox().getSelectedItem().toString();
+ }
- public int getLocalPort() {
- return Integer.parseInt(getLocalPortComboBox().getSelectedItem().toString());
+ public int getLocalPort() {
+ return Integer.parseInt(getLocalPortComboBox().getSelectedItem()
+ .toString());
- }
+ }
- public String getUser() {
- return getUserComboBox().getSelectedItem().toString();
- }
+ public String getUser() {
+ return getUserComboBox().getSelectedItem().toString();
+ }
- public char[] getPassword() {
- return getPasswordField().getPassword();
- }
+ public char[] getPassword() {
+ return getPasswordField().getPassword();
+ }
- /**
- * This method initializes jTextField
- *
- * @return javax.swing.JTextField
- */
- private JComboBoxWithHistory getUserComboBox() {
- if (userComboBox == null) {
- userComboBox = new JComboBoxWithHistory(historyManager,"userTextField");
- }
- return userComboBox;
- }
+ /**
+ * This method initializes jTextField
+ *
+ * @return javax.swing.JTextField
+ */
+ private JComboBoxWithHistory getUserComboBox() {
+ if (userComboBox == null) {
+ userComboBox = new JComboBoxWithHistory(historyManager,
+ "userTextField");
+ }
+ return userComboBox;
+ }
- /**
- * This method initializes jPasswordField
- *
- * @return javax.swing.JPasswordField
- */
- private JPasswordField getPasswordField() {
- if (passwordField == null) {
- passwordField = new JPasswordField();
- }
- return passwordField;
- }
+ /**
+ * This method initializes jPasswordField
+ *
+ * @return javax.swing.JPasswordField
+ */
+ private JPasswordField getPasswordField() {
+ if (passwordField == null) {
+ passwordField = new JPasswordField();
+ }
+ return passwordField;
+ }
- /**
- * This method initializes jRadioButton
- *
- * @return javax.swing.JRadioButton
- */
- private JRadioButton getHttpBootRadioButton() {
- if (httpBootRadioButton == null) {
- httpBootRadioButton = new JRadioButton();
- httpBootRadioButton.setText("Boot from HTTP");
- httpBootRadioButton.setSelected(true);
- httpBootRadioButton
- .addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent e) {
- enableTextfields();
- }
- });
- }
- return httpBootRadioButton;
- }
+ /**
+ * This method initializes jRadioButton
+ *
+ * @return javax.swing.JRadioButton
+ */
+ private JRadioButton getHttpBootRadioButton() {
+ if (httpBootRadioButton == null) {
+ httpBootRadioButton = new JRadioButton();
+ httpBootRadioButton.setText("Boot from HTTP");
+ httpBootRadioButton.setSelected(true);
+ httpBootRadioButton
+ .addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent e) {
+ enableTextfields();
+ }
+ });
+ }
+ return httpBootRadioButton;
+ }
- /**
- * This method initializes jRadioButton
- *
- * @return javax.swing.JRadioButton
- */
- private JRadioButton getDirectBootRadioButton() {
- if (directBootRadioButton == null) {
- directBootRadioButton = new JRadioButton();
- directBootRadioButton.setText("Boot directly from PastryNode");
- directBootRadioButton
- .addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent e) {
- enableTextfields();
- }
- });
- }
- return directBootRadioButton;
- }
+ /**
+ * This method initializes jRadioButton
+ *
+ * @return javax.swing.JRadioButton
+ */
+ private JRadioButton getDirectBootRadioButton() {
+ if (directBootRadioButton == null) {
+ directBootRadioButton = new JRadioButton();
+ directBootRadioButton.setText("Boot directly from PastryNode");
+ directBootRadioButton
+ .addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent e) {
+ enableTextfields();
+ }
+ });
+ }
+ return directBootRadioButton;
+ }
- /**
- * This method initializes jTextField
- *
- * @return javax.swing.JTextField
- */
- private JComboBoxWithHistory getDirectBootPortComboBox() {
- if (directBootPortComboBox == null) {
- directBootPortComboBox = new JComboBoxWithHistory(historyManager,"directBootPortTextField");
- directBootPortComboBox.setEnabled(false);
- }
- return directBootPortComboBox;
- }
+ /**
+ * This method initializes jTextField
+ *
+ * @return javax.swing.JTextField
+ */
+ private JComboBoxWithHistory getDirectBootPortComboBox() {
+ if (directBootPortComboBox == null) {
+ directBootPortComboBox = new JComboBoxWithHistory(historyManager,
+ "directBootPortTextField");
+ directBootPortComboBox.setEnabled(false);
+ }
+ return directBootPortComboBox;
+ }
- /**
- * This method initializes jTextField1
- *
- * @return javax.swing.JTextField
- */
- private JComboBoxWithHistory getDirectBootHostComboBox() {
- if (directBootHostComboBox == null) {
- directBootHostComboBox = new JComboBoxWithHistory(historyManager,"BootHostTextField");
- directBootHostComboBox.setEnabled(false);
- }
- return directBootHostComboBox;
- }
+ /**
+ * This method initializes jTextField1
+ *
+ * @return javax.swing.JTextField
+ */
+ private JComboBoxWithHistory getDirectBootHostComboBox() {
+ if (directBootHostComboBox == null) {
+ directBootHostComboBox = new JComboBoxWithHistory(historyManager,
+ "BootHostTextField");
+ directBootHostComboBox.setEnabled(false);
+ }
+ return directBootHostComboBox;
+ }
- /**
- * This method initializes jTextField2
- *
- * @return javax.swing.JTextField
- */
- private JComboBoxWithHistory getHttpBootURLComboBox() {
- if (httpBootURLComboBox == null) {
- httpBootURLComboBox = new JComboBoxWithHistory(historyManager,"httpBootURLTextField");
- //httpBootURLTextField.setText("http://tisoft.de/projects/pastry/boot.php");
- }
- return httpBootURLComboBox;
- }
+ /**
+ * This method initializes jTextField2
+ *
+ * @return javax.swing.JTextField
+ */
+ private JComboBoxWithHistory getHttpBootURLComboBox() {
+ if (httpBootURLComboBox == null) {
+ httpBootURLComboBox = new JComboBoxWithHistory(historyManager,
+ "httpBootURLTextField");
+ // httpBootURLTextField.setText("http://tisoft.de/projects/pastry/boot.php");
+ }
+ return httpBootURLComboBox;
+ }
- /**
- *
- */
- private void enableTextfields() {
- if (getHttpBootRadioButton().isSelected()) {
- getHttpBootURLComboBox().setEnabled(true);
- getDirectBootHostComboBox().setEnabled(false);
- getDirectBootPortComboBox().setEnabled(false);
- } else {
- getHttpBootURLComboBox().setEnabled(false);
- getDirectBootHostComboBox().setEnabled(true);
- getDirectBootPortComboBox().setEnabled(true);
- }
- }
+ /**
+ *
+ */
+ private void enableTextfields() {
+ if (getHttpBootRadioButton().isSelected()) {
+ getHttpBootURLComboBox().setEnabled(true);
+ getDirectBootHostComboBox().setEnabled(false);
+ getDirectBootPortComboBox().setEnabled(false);
+ getDiscoveryServiceList().setEnabled(false);
+ } else if (getDirectBootRadioButton().isSelected()) {
+ getHttpBootURLComboBox().setEnabled(false);
+ getDirectBootHostComboBox().setEnabled(true);
+ getDirectBootPortComboBox().setEnabled(true);
+ getDiscoveryServiceList().setEnabled(false);
+ } else {
+ getHttpBootURLComboBox().setEnabled(false);
+ getDirectBootHostComboBox().setEnabled(false);
+ getDirectBootPortComboBox().setEnabled(false);
+ getDiscoveryServiceList().setEnabled(true);
+ }
+ }
- /**
- * This method initializes jComboBox
- *
- * @return javax.swing.JComboBox
- */
- private JComboBox getLocalIPComboBox() {
- if (localIPComboBox == null) {
- localIPComboBox = new JComboBox();
- fillLocalIPComboBox();
-
- localIPComboBox.addItemListener(new ItemListener(){public void itemStateChanged(ItemEvent e) {
-
- String user=getlocalAddress();
- try {
- String hostName = InetAddress.getByName(getlocalAddress()).getHostName();
-
- if(!hostName.equals(user)&&hostName.contains(".")){
- hostName=hostName.substring(0,hostName.indexOf("."));
+ /**
+ * This method initializes jComboBox
+ *
+ * @return javax.swing.JComboBox
+ */
+ private JComboBox getLocalIPComboBox() {
+ if (localIPComboBox == null) {
+ localIPComboBox = new JComboBox();
+ fillLocalIPComboBox();
+
+ localIPComboBox.addItemListener(new ItemListener() {
+ public void itemStateChanged(ItemEvent e) {
+
+ String user = getlocalAddress();
+ try {
+ String hostName = InetAddress.getByName(
+ getlocalAddress()).getHostName();
+
+ if (!hostName.equals(user) && hostName.contains(".")) {
+ hostName = hostName.substring(0, hostName
+ .indexOf("."));
+ }
+
+ user = hostName;
+ } catch (UnknownHostException e1) {
+ // TODO Auto-generated catch block
+ e1.printStackTrace();
}
-
- user = hostName;
- } catch (UnknownHostException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
+
+ getUserComboBox().addItem(user);
+ getUserComboBox().setSelectedItem(user);
}
-
- getUserComboBox().addItem(user);
- getUserComboBox().setSelectedItem(user);
- }});
- }
- return localIPComboBox;
- }
-} // @jve:decl-index=0:visual-constraint="10,10"
+ });
+ }
+ return localIPComboBox;
+ }
+ private JRadioButton getDiscoveryBootRadioButton() {
+ if (discoveryBootRadioButton == null) {
+ discoveryBootRadioButton = new JRadioButton();
+ discoveryBootRadioButton.setText("Boot from discovered service");
+ discoveryBootRadioButton
+ .addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent e) {
+ enableTextfields();
+ }
+ });
+ }
+ return discoveryBootRadioButton;
+ }
+
+ private JList getDiscoveryServiceList() {
+ if (discoveryServiceList == null) {
+ final DefaultComboBoxModel discoveryServiceListModel = new DefaultComboBoxModel();
+ try {
+ new LocalDiscovery().discoverService(new ServiceListener() {
+ public void addServiceInfo(ServiceInfo info) {
+ System.out.println("Adding: " + info);
+ discoveryServiceListModel.addElement(info);
+ }
+
+ public void removeServiceInfo(ServiceInfo info) {
+ System.out.println("Removing: " + info);
+ discoveryServiceListModel.removeElement(info);
+ }
+ });
+ } catch (IOException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ discoveryServiceList = new JList();
+ discoveryServiceList.setModel(discoveryServiceListModel);
+ }
+ return discoveryServiceList;
+ }
+
+ private JScrollPane getJScrollPane1() {
+ if (jScrollPane1 == null) {
+ jScrollPane1 = new JScrollPane();
+ jScrollPane1.setViewportView(getDiscoveryServiceList());
+ }
+ return jScrollPane1;
+ }
+
+} // @jve:decl-index=0:visual-constraint="10,10"
+
/*
- * $Log: ConnectDialog.java,v $
- * Revision 1.11 2006/10/25 11:56:12 tisoft_media
+ * $Log: ConnectDialog.java,v $ Revision 1.11 2006/10/25 11:56:12 tisoft_media
* use hostname as default username
- *
- * Revision 1.10 2006/10/09 09:59:49 tisoft_media
- * some code cleanup
- *
- * Revision 1.9 2006/09/21 13:43:35 tisoft_media
- * remmeved password checking
- *
- * Revision 1.7 2006/09/21 13:18:37 giessman
- * Some changes
- *
- * Revision 1.6 2006/09/21 10:49:27 obi
- * OiOi
- *
- * Revision 1.5 2006/07/03 19:03:25 tisoft_media
- * code cleanup
- *
- * Revision 1.4 2006/04/10 17:22:36 tisoft_media
- * changed HistoryManager a bit
- * Moved some Past stuff to BlockingPast
- * Added first implementation of PastKeyManager
- *
- * Revision 1.3 2006/03/29 10:22:04 brinksmeier
- * refactoring
- *
- * Revision 1.2 2006/03/28 14:23:49 brinksmeier
- * alles mit toller history
- *
- * Revision 1.1 2006/03/28 07:55:30 tisoft_media
- * initial commit
- * can boot into the Pastry Network
- *
- * Revision 1.1 2006/02/14 15:36:57 tisoft_media
- * partly working
- * dots can move and change region controlers
- * region controllers are started dynamically
- * no interaction between region controllers yet
- *
- * Revision 1.1 2006/01/31 16:05:44 tisoft_media
- * initial commit
- *
- * Revision 1.5 2005/12/08 18:45:24 markus
- * organized imports
- *
- * Revision 1.4 2005/12/08 12:21:08 markus
- * added default http boot url
- *
- * Revision 1.3 2005/12/06 21:43:45 markus
- * show only ipv4 addresses
- *
- * Revision 1.2 2005/12/06 21:33:15 markus
- * added combo box for local address
- *
- * Revision 1.1 2005/11/10 23:05:36 markus
- * initial commit
- *
- * Revision 1.1 2005/10/11 13:19:56 markus
- * initial working chat client
- *
+ *
+ * Revision 1.10 2006/10/09 09:59:49 tisoft_media some code cleanup
+ *
+ * Revision 1.9 2006/09/21 13:43:35 tisoft_media remmeved password checking
+ *
+ * Revision 1.7 2006/09/21 13:18:37 giessman Some changes
+ *
+ * Revision 1.6 2006/09/21 10:49:27 obi OiOi
+ *
+ * Revision 1.5 2006/07/03 19:03:25 tisoft_media code cleanup
+ *
+ * Revision 1.4 2006/04/10 17:22:36 tisoft_media changed HistoryManager a bit
+ * Moved some Past stuff to BlockingPast Added first implementation of
+ * PastKeyManager
+ *
+ * Revision 1.3 2006/03/29 10:22:04 brinksmeier refactoring
+ *
+ * Revision 1.2 2006/03/28 14:23:49 brinksmeier alles mit toller history
+ *
+ * Revision 1.1 2006/03/28 07:55:30 tisoft_media initial commit can boot into
+ * the Pastry Network
+ *
+ * Revision 1.1 2006/02/14 15:36:57 tisoft_media partly working dots can move
+ * and change region controlers region controllers are started dynamically no
+ * interaction between region controllers yet
+ *
+ * Revision 1.1 2006/01/31 16:05:44 tisoft_media initial commit
+ *
+ * Revision 1.5 2005/12/08 18:45:24 markus organized imports
+ *
+ * Revision 1.4 2005/12/08 12:21:08 markus added default http boot url
+ *
+ * Revision 1.3 2005/12/06 21:43:45 markus show only ipv4 addresses
+ *
+ * Revision 1.2 2005/12/06 21:33:15 markus added combo box for local address
+ *
+ * Revision 1.1 2005/11/10 23:05:36 markus initial commit
+ *
+ * Revision 1.1 2005/10/11 13:19:56 markus initial working chat client
+ *
*/
\ No newline at end of file
Modified: trunk/P2PlayBoot/src/main/java/org/p2play/boot/discovery/LocalDiscovery.java
===================================================================
--- trunk/P2PlayBoot/src/main/java/org/p2play/boot/discovery/LocalDiscovery.java 2007-07-02 13:02:39 UTC (rev 55)
+++ trunk/P2PlayBoot/src/main/java/org/p2play/boot/discovery/LocalDiscovery.java 2007-07-02 20:17:13 UTC (rev 56)
@@ -1,38 +1 @@
-package org.p2play.boot.discovery;
-
-import java.io.IOException;
-import java.net.InetSocketAddress;
-
-import javax.jmdns.JmDNS;
-import javax.jmdns.ServiceEvent;
-
-public class LocalDiscovery {
- private JmDNS jmdns;
-
- public LocalDiscovery() throws IOException {
- jmdns = new JmDNS();
- }
-
- public void addService(String name, int port) throws IOException {
- jmdns.registerService(new javax.jmdns.ServiceInfo("_p2play._tcp.local.", name
- + "._p2play._tcp.local.", port, "P2Play - Service"));
-
- }
-
- public void discoverService(final ServiceListener listener) {
- jmdns.addServiceListener("_p2play._tcp.local.", new javax.jmdns.ServiceListener(){
- public void serviceAdded(ServiceEvent arg0) {
- jmdns.requestServiceInfo(arg0.getType(), arg0.getName());
- }
-
- public void serviceRemoved(ServiceEvent arg0) {
-
- }
-
- public void serviceResolved(ServiceEvent arg0) {
- listener.addServiceInfo(new ServiceInfo(arg0.getName(), new InetSocketAddress(arg0.getInfo().getInetAddress(),arg0.getInfo().getPort())));
-
- }
- });
- }
-}
+nking.gad.de/banking/banking;jsessionid=4447ED60BA4FB2B170C60AA08D6547A6.node4?bankidTimeout=4453&viewName=HoleUmsatzDetails&action=HoleAlleUmsaetze&applId=ib_banking&frame=content&timeout=4453[203602139.1\xD4 |