update ProcPort doc

This commit is contained in:
Doug MacEachern 2005-03-20 02:59:22 +00:00
parent c3a432ac60
commit 2fb7a2fab3
1 changed files with 8 additions and 1 deletions

View File

@ -460,7 +460,8 @@ public class Sigar implements SigarProxy {
/** /**
* Find the pid of the process which is listening on the given port.<p> * Find the pid of the process which is listening on the given port.<p>
* 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. * @param port The port number.
* @return pid of the process. * @return pid of the process.
* @exception SigarException on failure. * @exception SigarException on failure.
@ -468,6 +469,12 @@ public class Sigar implements SigarProxy {
public native long getProcPort(int protocol, long port) public native long getProcPort(int protocol, long port)
throws SigarException; 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) public long getProcPort(String protocol, String port)
throws SigarException { throws SigarException {