37 const Port& destinationPort,
121 Port _destinationPort;
130 const
Port& destinationPort,
132 : _deviceIp{deviceIp}
133 , _destinationIp{destinationIp}
134 , _destinationPort{destinationPort}
135 , _subnetMask{subnetMask}
145 return _destinationIp;
150 return _destinationPort;
165 _destinationIp = address;
170 _destinationPort = port;
175 _subnetMask = subnetMask;
180 return _deviceIp == rhs._deviceIp &&
181 _destinationIp == rhs._destinationIp &&
182 _destinationPort == rhs._destinationPort &&
183 _subnetMask == rhs._subnetMask;
188 return !(*
this == rhs);
Contains a class holding IP v4 address.
Contains a class representing an network port.
const IpAddress & getDeviceIp() const noexcept
Returns the IP address of the device.
Definition DeviceNetworkConfig.h:138
void setSubnetMask(const IpAddress &subnetMask) noexcept
Sets the subnet mask.
Definition DeviceNetworkConfig.h:173
bool operator==(const DeviceNetworkConfig &rhs) const noexcept
Returns whether this configuration equals the provided one.
Definition DeviceNetworkConfig.h:178
DeviceNetworkConfig()=default
Constructor.
bool operator!=(const DeviceNetworkConfig &rhs) const noexcept
Returns whether this configuration is different from the provided one.
Definition DeviceNetworkConfig.h:186
void setDeviceIp(const IpAddress &address) noexcept
Sets the device IP address.
Definition DeviceNetworkConfig.h:158
const IpAddress & getDestinationIp() const noexcept
Returns the IP address to which the device sends its data to.
Definition DeviceNetworkConfig.h:143
void setDestinationIp(const IpAddress &address) noexcept
Sets the destination IP address to which the device sends its data to.
Definition DeviceNetworkConfig.h:163
void setDestinationPort(const Port &port) noexcept
Sets the port to which the device sends its data to.
Definition DeviceNetworkConfig.h:168
const IpAddress & getSubnetMask() const noexcept
Returns the subnet mask.
Definition DeviceNetworkConfig.h:153
const Port & getDestinationPort() const noexcept
Returns the port to which the device sends its data to.
Definition DeviceNetworkConfig.h:148
Encapsulates an IP v4 address.
Definition IpAddress.h:33
Encapsulates a network port number.
Definition Port.h:34
Main SDK namespace.
Definition AlarmChannel.h:21