From 294c539f16f6f22f8499e2f5034faa957eac66d9 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sun, 22 Jan 2006 21:47:27 +0000 Subject: [PATCH] keep track of states per-ip --- .../java/src/net/hyperic/sigar/NetStat.java | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/bindings/java/src/net/hyperic/sigar/NetStat.java b/bindings/java/src/net/hyperic/sigar/NetStat.java index 29157e77..a082530a 100644 --- a/bindings/java/src/net/hyperic/sigar/NetStat.java +++ b/bindings/java/src/net/hyperic/sigar/NetStat.java @@ -25,13 +25,18 @@ public class NetStat { stat(flags); } - - public static class IpEntry { - int count; - IpEntry() { - this.count = 0; + public static int[] newTcpStateArray() { + int[] states = new int[NetFlags.TCP_UNKNOWN]; + for (int i=0; i