Class: QgsTcpSocketSensor¶
A TCP socket sensor class.
Added in version 3.32.
Class Hierarchy¶
Base classes¶
An abstract class for QIODevice-based sensors. |
|
An abstract base class for sensors. |
|
Methods
Returns the host name the socket connects to. |
|
Returns the port the socket connects to. |
|
Sets the host name the socket connects to. |
|
Sets the port the socket connects to. |
Static Methods
Returns a new TCP socket sensor. |
- class qgis.core.QgsTcpSocketSensor[source]¶
Bases:
QgsIODeviceSensor
- __init__(parent: QObject | None = None)
Constructor for a TCP socket sensor, bound to the specified
parent
.- Parameters:
parent (Optional[QObject] = None)
- static create(parent: QObject | None) QgsTcpSocketSensor | None [source]¶
Returns a new TCP socket sensor.
The caller takes responsibility for deleting the returned object.
- Parameters:
parent (Optional[QObject])
- Return type:
Optional[QgsTcpSocketSensor]