Class: QgsUdpSocketSensor¶
A UDP 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 UDP socket sensor. |
- class qgis.core.QgsUdpSocketSensor[source]¶
Bases:
QgsIODeviceSensor
- __init__(parent: QObject | None = None)
Constructor for a UDP socket sensor, bound to the specified
parent
.- Parameters:
parent (Optional[QObject] = None)
- static create(parent: QObject | None) QgsUdpSocketSensor | None [source]¶
Returns a new UDP socket sensor.
The caller takes responsibility for deleting the returned object.
- Parameters:
parent (Optional[QObject])
- Return type:
Optional[QgsUdpSocketSensor]