public class FreePort extends Object
public FreePort(int from,
int to)
from - Begin of range to search for free port (including)to - End of range to search for free port (including)public int getPort()
RuntimeException - if no port has been found. (TODO change this to an apropriate checked exception)Copyright © 2006-2014 OPS4J - Open Participation Software for Java. All Rights Reserved.