From dc55b40c5e26fcb8272d1992182a3d111f23ec4d Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Tue, 10 May 2005 14:50:20 +0000 Subject: [PATCH] include tcp in the names, might want to add udp or whatever later --- .../src/net/hyperic/sigar/NetPortMap.java | 98 +++++++++---------- 1 file changed, 49 insertions(+), 49 deletions(-) diff --git a/bindings/java/src/net/hyperic/sigar/NetPortMap.java b/bindings/java/src/net/hyperic/sigar/NetPortMap.java index 5f904bd6..9339930d 100644 --- a/bindings/java/src/net/hyperic/sigar/NetPortMap.java +++ b/bindings/java/src/net/hyperic/sigar/NetPortMap.java @@ -7,10 +7,10 @@ import java.util.Map; public class NetPortMap { private Sigar sigar; - private Map inbound; - private Map outbound; - private int[] states; - private int inboundTotal, outboundTotal; + private Map tcpInbound; + private Map tcpOutbound; + private int[] tcpStates; + private int tcpInboundTotal, tcpOutboundTotal; public NetPortMap() { this.sigar = new Sigar(); @@ -36,12 +36,12 @@ public class NetPortMap { } public void stat(int flags) throws SigarException { - this.inbound = new HashMap(); - this.outbound = new HashMap(); - this.inboundTotal = this.outboundTotal = 0; - this.states = new int[NetFlags.TCP_UNKNOWN]; - for (int i=0; i