Returns the port number the server is listening on. This can return -1 if there is no actual port or the result otherwise does not make sense. Result is undefined after the server is terminated. If there are multiple possible ports, this will return one arbitrarily. Implementations are encouraged
()
| 60 | * @since 1.0.0 |
| 61 | */ |
| 62 | public int getPort() { |
| 63 | return -1; |
| 64 | } |
| 65 | |
| 66 | /** |
| 67 | * Returns a list of listening sockets for this server. May be different than the originally |
no outgoing calls