/** * Supported as of 0.9.33, prior to that threw UnsupportedOperationException * @return 1 if connected, -1 if not */ @Override public int getLocalPort() { return isConnected() ? 1 : -1; }
/** * Supported as of 0.9.33, prior to that threw UnsupportedOperationException * @return if connected: actual port for clients, 1 for servers; -1 if not */ @Override public int getPort() { return isConnected() ? _port : 0; } /** @deprecated unsupported */