Source code: com/rsi/ipstat/PortTable.java
1 /*
2
3 This software is open-source and is distributed under the terms of the GNU
4 General Public License.
5
6 Copyright (c) 2000-2002 Sergey I. Rotar <rsi@isp.od.ua>
7
8 */
9
10 package com.rsi.ipstat;
11
12 public class PortTable {
13 public int[] pid;
14 public String[] name;
15 public int[] src1;
16 public int[] src2;
17 public int[] dst1;
18 public int[] dst2;
19 public int realLength = 0;
20
21 public PortTable()
22 {
23 int n = DBManager.getPortCount();
24 pid = new int[n];
25 name = new String[n];
26 src1 = new int[n];
27 src2 = new int[n];
28 dst1 = new int[n];
29 dst2 = new int[n];
30 }
31
32 public PortTable(int n)
33 {
34 pid = new int[n];
35 name = new String[n];
36 src1 = new int[n];
37 src2 = new int[n];
38 dst1 = new int[n];
39 dst2 = new int[n];
40 }
41
42 }