Return true if this instance has a defined port.
()
| 99 | |
| 100 | /** Return true if this instance has a defined port. */ |
| 101 | public boolean hasPort() { |
| 102 | return port >= 0; |
| 103 | } |
| 104 | |
| 105 | /** |
| 106 | * Get the current port number, failing if no port is defined. |
no outgoing calls