From 2fb7a2fab3039606b2ccd33af7695327cd0f31a8 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sun, 20 Mar 2005 02:59:22 +0000 Subject: [PATCH] update ProcPort doc --- bindings/java/src/net/hyperic/sigar/Sigar.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bindings/java/src/net/hyperic/sigar/Sigar.java b/bindings/java/src/net/hyperic/sigar/Sigar.java index 29827734..dd53caef 100644 --- a/bindings/java/src/net/hyperic/sigar/Sigar.java +++ b/bindings/java/src/net/hyperic/sigar/Sigar.java @@ -460,7 +460,8 @@ public class Sigar implements SigarProxy { /** * Find the pid of the process which is listening on the given port.

- * Supported Platforms: Linux and Windows XP only. + * Supported Platforms: Linux, Windows 2003, Windows XP, AIX. + * @param protocol NetFlags.CONN_TCP or NetFlags.CONN_UDP. * @param port The port number. * @return pid of the process. * @exception SigarException on failure. @@ -468,6 +469,12 @@ public class Sigar implements SigarProxy { public native long getProcPort(int protocol, long port) throws SigarException; + /** + * @param protocol "tcp" or "udp". + * @param port The port number. + * @return pid of the process. + * @exception SigarException on failure. + */ public long getProcPort(String protocol, String port) throws SigarException {