@Contract
public interface Ports
Modifier and Type | Method and Description |
---|---|
Port |
createPort(int number)
Creates a port, binds it to a port number and returns it
|
Collection<Port> |
getPorts()
Returns the list of allocated ports
|
Port createPort(int number) throws IOException
number
- the port numberIOException
- if the port is already taken or another network exception occursCollection<Port> getPorts()
Copyright © 2020. All rights reserved.