summaryrefslogtreecommitdiff
path: root/source/com/c2kernel/entity/proxy/ProxySubscriber.java
blob: 8cb85fa1c760ab60038fa0ae4a4ae30ba05f6290 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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<Object>();

    public ProxySubscriber(DatagramPacket packet) throws InvalidDataException {
        host = packet.getAddress();
        port = packet.getPort();
    }

    public InetAddress getHost() {
        return host;
    }

    public int getPort() {
        return port;
    }
}