summaryrefslogtreecommitdiff
path: root/source/com/c2kernel/entity/proxy/ProxySubscriber.java
diff options
context:
space:
mode:
Diffstat (limited to 'source/com/c2kernel/entity/proxy/ProxySubscriber.java')
-rwxr-xr-xsource/com/c2kernel/entity/proxy/ProxySubscriber.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/source/com/c2kernel/entity/proxy/ProxySubscriber.java b/source/com/c2kernel/entity/proxy/ProxySubscriber.java
new file mode 100755
index 0000000..67d0a60
--- /dev/null
+++ b/source/com/c2kernel/entity/proxy/ProxySubscriber.java
@@ -0,0 +1,36 @@
+package com.c2kernel.entity.proxy;
+
+import java.net.DatagramPacket;
+import java.net.InetAddress;
+import java.util.ArrayList;
+
+import com.c2kernel.common.InvalidDataException;
+
+/**************************************************************************
+ *
+ * $Revision: 1.1 $
+ * $Date: 2003/04/24 10:12:40 $
+ *
+ * Copyright (C) 2003 CERN - European Organization for Nuclear Research
+ * All rights reserved.
+ **************************************************************************/
+
+public class ProxySubscriber {
+
+ private InetAddress host;
+ private int port;
+ public ArrayList sysKeys = new ArrayList();
+
+ public ProxySubscriber(DatagramPacket packet) throws InvalidDataException {
+ host = packet.getAddress();
+ port = packet.getPort();
+ }
+
+ public InetAddress getHost() {
+ return host;
+ }
+
+ public int getPort() {
+ return port;
+ }
+}