| Constructor and Description |
|---|
PortsImpl() |
| 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
|
void |
remove(Port port) |
public Port createPort(int number) throws IOException
PortscreatePort in interface Portsnumber - the port numberIOException - if the port is already taken or another network exception occurspublic Collection<Port> getPorts()
Portspublic void remove(Port port)
Copyright © 2017. All rights reserved.