def is_connected(self):
<EOL>try:<EOL><INDENT>self.exec_command(b"<STR_LIT>")<EOL>return self.status.connection_state.startswith(b"<STR_LIT>")<EOL><DEDENT>except NotConnectedException:<EOL><INDENT>return False<EOL><DEDENT>
Return bool indicating connection state