Portnummer für XPort als Konstante aufgenommen
authorfelix <felix@a944a559-bf0e-0410-8ddc-85264b264b6c>
Fri, 18 May 2007 19:14:41 +0000 (19:14 +0000)
committerfelix <felix@a944a559-bf0e-0410-8ddc-85264b264b6c>
Fri, 18 May 2007 19:14:41 +0000 (19:14 +0000)
git-svn-id: https://www.internetallee.de/svn/bytewurf@45 a944a559-bf0e-0410-8ddc-85264b264b6c

projekte/netzschalter/src/de/bytewurf/projekte/netzschalter/NetzdoseKonstanten.java
projekte/netzschalter/src/de/bytewurf/projekte/netzschalter/NetzdosenApplet.java

index 32b74e5..0c8917c 100644 (file)
@@ -17,4 +17,5 @@ public class NetzdoseKonstanten {
        public static final String[] STATE_NAMES = {
                null, "ON", "OFF"
        };
+       static final int XPORT_PORT = 0x77f0;
 }
index d002ad6..e2d92ef 100644 (file)
@@ -37,7 +37,7 @@ public class NetzdosenApplet extends Applet {
                HostConfig hostConfig = new HostConfig();
                hostConfig.setHostname(getCodeBase().getHost());
                hostConfig.setPortA(10001);
-               hostConfig.setPortB(123);
+               hostConfig.setPortB(NetzdoseKonstanten.XPORT_PORT);
                netzdose.setHostConfig(hostConfig);
 
                setLayout(new BorderLayout());