From 254ee6f47eebfc00462c10756a92066e82cc1a96 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Tue, 21 Jun 2011 15:46:02 +0200 Subject: Initial commit --- .../com/c2kernel/entity/proxy/ProxySubscriber.java | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100755 source/com/c2kernel/entity/proxy/ProxySubscriber.java (limited to 'source/com/c2kernel/entity/proxy/ProxySubscriber.java') 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; + } +} -- cgit v1.2.3