org.jboss.remoting.transport
Class PortUtil

java.lang.Object
  extended byorg.jboss.remoting.transport.PortUtil

public class PortUtil
extends java.lang.Object

PortUtil is a set of utilities for dealing with TCP/IP ports

Version:
$Revision: 1.3 $
Author:
Jeff Haynie

Constructor Summary
PortUtil()
           
 
Method Summary
static boolean checkPort(int p)
          Checks to see if the specified port is free.
static int findFreePort()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortUtil

public PortUtil()
Method Detail

checkPort

public static boolean checkPort(int p)
Checks to see if the specified port is free.

Parameters:
p -
Returns:
true if available, false if already in use

findFreePort

public static int findFreePort()

main

public static void main(java.lang.String[] args)


Copyright © 1998-2005 JBoss Inc . All Rights Reserved.