|
| | StreamConnection () |
| | Creates a default (disconnected) StreamConnection. More...
|
| |
| | StreamConnection (const StreamConnection &)=delete |
| |
| StreamConnection & | operator= (const StreamConnection &)=delete |
| |
| virtual | ~StreamConnection () |
| | Destroys the StreamConnection. More...
|
| |
| void | connect (const std::string remoteHost, unsigned char version, bool decodeProtocol=false) |
| | Connects to a remote IP BAOS device. More...
|
| |
| void | connect (const BaosDevice &baosDevice, bool decodeProtocol=false) |
| | Connects to a remote IP BAOS device. More...
|
| |
| void | connectByName (const std::string &name, bool decodeProtocol=false) |
| | Connects to a remote IP BAOS device It gets the IP address and protocol version via a KNXnet/IP Search Request/Response. More...
|
| |
| void | connectByAddress (const std::string &ipAddress, bool decodeProtocol=false) |
| | Connects to a remote IP BAOS device It gets the protocol version via a KNXnet/IP Search Request/Response. More...
|
| |
| void | connectNat (const std::string &ipAddress, unsigned short port, unsigned char version, bool decodeProtocol=false) |
| | Connects to a remote IP BAOS device with NAT. More...
|
| |
| | BaosConnection () |
| | Creates a default (disconnected) BaosConnection. More...
|
| |
| | BaosConnection (const BaosConnection &)=delete |
| |
| BaosConnection & | operator= (const BaosConnection &)=delete |
| |
| virtual | ~BaosConnection () |
| | Destroys the StreamConnection. More...
|
| |
| BaosConnectorPtr | getConnector () |
| | returns the connector throws a NullPointerException exception if the connector is not connected More...
|
| |
| void | connectIp (const std::string remoteHost, unsigned char version, bool decodeProtocol=false) |
| | Connects to a remote IP BAOS device. More...
|
| |
| void | connectIp (const BaosDevice &baosDevice, bool decodeProtocol=false) |
| | Connects to a remote IP BAOS device. More...
|
| |
| void | connectIpByName (const std::string &name, bool decodeProtocol=false) |
| | Connects to a remote IP BAOS device It gets the IP address and protocol version via a KNXnet/IP Search Request/Response. More...
|
| |
| void | connectIpByAddress (const std::string &ipAddress, bool decodeProtocol=false) |
| | Connects to a remote IP BAOS device It gets the protocol version via a KNXnet/IP Search Request/Response. More...
|
| |
| void | connectIpNat (const std::string &ipAddress, unsigned short port, unsigned char version, bool decodeProtocol=false) |
| | Connects to a remote IP BAOS device with NAT. More...
|
| |
| void | connectSerial (const std::string &serialDeviceName, bool decodeProtocol=false) |
| | Connects to a Serial FT1.2 BAOS device. More...
|
| |
| void | disconnect () |
| | Disconnects the connection to a remote device. More...
|
| |
| bool | isConnected () const |
| | Returns true if the connection is established, false otherwise. More...
|
| |
| ConnectSignal & | getConnectSignal () |
| | Returns the connect signal This is invoked when the connector thread is started. More...
|
| |
| DisconnectSignal & | getDisconnectSignal () |
| | Returns the disconnect signal This is invoked when the connector thread is stopped. More...
|
| |
The StreamConnection is responsible for creating a TCP/IP stream connection with the baos server.
The StreamConnection is responsible for creating a TCP/IP socket connection to the remote BAOS device. It requires the IP Address of the device. The StreamConnection is a wrapper around the Connector which is used throughout the baos rpc library.
It implements a connect and a disconnect signal. These signals are invoked when the stream connection is connector and disconnected respectively. Note: a stream connection can be auto-disconnected if the tcp/ip connection is terminated by the remote peer (baos device). This may occur if a connection timeout occurs (i.e. no socket activity for a couple of minutes).
- See also
- BaosHeartbeat
- Deprecated:
- Use ScopedBaosConnection instead. This class calls only the functions from BaosConnection.