public interface ListeningPort extends Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Shuts down the port forwarding by removing the server socket.
|
int |
getPort()
TCP/IP port that is listening.
|
int getPort()
void close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOExceptionCopyright © 2004–2022. All rights reserved.