Determines The current connection status.
If connected is false, writing to the connection will trigger an exception. Reading may still succeed as long as there is data left in the input buffer. Use InputStream.empty to determine when to stop reading.
abstract bool connected() @property const;