From 7851cc3299bc448d9e4cd33cee662e810d855b17 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sat, 7 May 2005 23:14:34 +0000 Subject: [PATCH] add outbound connections, change existing stuff to be called inbound --- .../src/net/hyperic/sigar/NetPortMap.java | 47 ++++++++++++++----- 1 file changed, 36 insertions(+), 11 deletions(-) diff --git a/bindings/java/src/net/hyperic/sigar/NetPortMap.java b/bindings/java/src/net/hyperic/sigar/NetPortMap.java index dcb09ca9..3aecaafa 100644 --- a/bindings/java/src/net/hyperic/sigar/NetPortMap.java +++ b/bindings/java/src/net/hyperic/sigar/NetPortMap.java @@ -13,7 +13,8 @@ import java.util.StringTokenizer; public class NetPortMap { private Sigar sigar; - private Map clients; + private Map inbound; + private Map outbound; private int[] states; private static final String SERVICE_FILE; @@ -130,7 +131,8 @@ public class NetPortMap { } public void stat(int flags) throws SigarException { - this.clients = new HashMap(); + this.inbound = new HashMap(); + this.outbound = new HashMap(); this.states = new int[NetFlags.TCP_UNKNOWN]; for (int i=0; i