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 AutoCloseable
close
in interface Closeable
IOException
Copyright © 2004–2022. All rights reserved.