51 virtual bool Connect()
override;
59 virtual std::string
name()
override
61 return "CONNECTION_TCP";
64 virtual std::string
label()
override
69 virtual const char *
host()
const
73 virtual uint32_t
port()
const
82 virtual bool ISNewText(
const char *dev,
const char *
name,
char *texts[],
char *names[],
int n)
override;
104 bool establishConnection(
const std::string &hostname,
const std::string &port,
int timeout = -1);
Interface(INDI::DefaultDevice *dev, Type type=CONNECTION_NONE)
void setDefaultHost(const char *addressHost)
virtual std::string label() override
int m_ConfigConnectionType
virtual bool ISNewText(const char *dev, const char *name, char *texts[], char *names[], int n) override
static constexpr uint8_t SOCKET_TIMEOUT
void setLANSearchEnabled(bool enabled)
virtual std::string name() override
virtual bool Disconnect() override
Disconnect Disconnect from device.
void setConnectionType(int type)
TODO should be renamed to setDefaultConnectionType.
virtual void Activated() override
Activated Function called by the framework when the plugin is activated (i.e. selected by the user)....
void setDefaultPort(uint32_t addressPort)
virtual const char * host() const
INDI::PropertyText AddressTP
Properties.
virtual bool Connect() override
Connect Connect to device via the implemented communication medium. Do not perform any handshakes.
INDI::PropertySwitch LANSearchSP
TCP(INDI::DefaultDevice *dev, IPerm permission=IP_RW)
INDI::PropertySwitch TcpUdpSP
virtual uint32_t port() const
virtual bool saveConfigItems(FILE *fp) override
ConnectionType connectionType() const
bool establishConnection(const std::string &hostname, const std::string &port, int timeout=-1)
establishConnection Create a socket connection to the host and port. If successful,...
virtual bool ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int n) override
virtual void Deactivated() override
Deactivated Function called by the framework when the plugin is deactivated. It is usually used to de...
Class to provide extended functionality for devices in addition to the functionality provided by INDI...
IPerm
Permission hint, with respect to client.
*brief user defined string literal for JSON values *sa std::size_t n
Combines all INDI Connection Plugins. Each INDI connection plugin is responsible of managing communic...