133 std::array<std::uint8_t, 4> _bytes;
Contains defines controlling the Windows DLL export and import of symbols.
#define OTC_SDK_API
Only needed when working with Windows DLLs.
Definition Api.h:65
Contains the exceptions raised by the SDK.
Encapsulates an IP v4 address.
Definition IpAddress.h:33
OTC_SDK_API void setFromUInt32(std::uint32_t address) noexcept
Sets the address from an unsigned 32 bit integer in network byte order.
OTC_SDK_API std::uint8_t getByte(int index) const
Returns the value of the byte with the given index.
OTC_SDK_API void reset()
Resets all the bytes of the address to 0.0.0.0.
OTC_SDK_API void setByte(int index, std::uint8_t value)
Sets the value of the byte with the given index.
OTC_SDK_API void setFromString(const std::string &address)
Sets the address from a string in dot notation (a.b.c.d).
OTC_SDK_API IpAddress() noexcept
Constructor.
OTC_SDK_API std::string toString() const noexcept
Returns the address as a string in dot notation (a.b.c.d).
OTC_SDK_API std::uint32_t toUInt32() const noexcept
Returns the address as an unsigned 32 bit integer in network byte order.
Main SDK namespace.
Definition DeviceInfo.h:23