These are the pre-v12 classes, kept so existing code keeps building. New code should use the modern API — see Migration Guide: v11 to v12.
optris::DeviceNetworkConfig
Encapsulates the on device network configuration.
Public functions
DeviceNetworkConfig
DeviceNetworkConfig()=default
Constructor.
DeviceNetworkConfig
DeviceNetworkConfig(const IpAddress &deviceIp, const IpAddress &destinationIp, const Port &destinationPort, const IpAddress &subnetMask) noexcept
Constructor.
Parameters
| Name | Description |
|---|---|
deviceIp |
address. |
destinationIp |
address for the device to send data to. |
destinationPort |
for the device to send data to. |
subnetMask |
of the network. |
getDeviceIp
const IpAddress & getDeviceIp() const noexcept
Returns the IP address of the device.
Returns: IP address of the device.
getDestinationIp
const IpAddress & getDestinationIp() const noexcept
Returns the IP address to which the device sends its data to.
Returns: IP address to which the device sends its data to.
getDestinationPort
const Port & getDestinationPort() const noexcept
Returns the port to which the device sends its data to.
Returns: port to which the device sends its data to.
getSubnetMask
const IpAddress & getSubnetMask() const noexcept
Returns the subnet mask.
Returns: subnet mask.
setDeviceIp
void setDeviceIp(const IpAddress &address) noexcept
Sets the device IP address.
Parameters
| Name | Description |
|---|---|
address |
to set. |
setDestinationIp
void setDestinationIp(const IpAddress &address) noexcept
Sets the destination IP address to which the device sends its data to.
Parameters
| Name | Description |
|---|---|
address |
to set. |
setDestinationPort
void setDestinationPort(const Port &port) noexcept
Sets the port to which the device sends its data to.
Parameters
| Name | Description |
|---|---|
port |
to set. |
setSubnetMask
void setSubnetMask(const IpAddress &subnetMask) noexcept
Sets the subnet mask.
Parameters
| Name | Description |
|---|---|
subnetMask |
to set. |
operator==
bool operator==(const DeviceNetworkConfig &rhs) const noexcept
Returns whether this configuration equals the provided one.
Parameters
| Name | Description |
|---|---|
rhs |
device network configuration to compare this one to. |
Returns: true, if this configuration equals the provided one.
operator!=
bool operator!=(const DeviceNetworkConfig &rhs) const noexcept
Returns whether this configuration is different from the provided one.
Parameters
| Name | Description |
|---|---|
rhs |
device network configuration to compare this one to. |
Returns: true, if this configuration is different from the provided one.