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