• OctoMY API
  • OctoMY API Reference
  • C++ Classes
  • OctoMY
  • AddressEntry
  • AddressEntry Class

    A scored network address with usage statistics. More...

    Header: #include <AddressEntry>
    Since: 1.0

    Detailed Description

    AddressEntry wraps a CarrierAddress with metadata including description, creation time, last success/error times, and success/error counts. The score() method ranks addresses for connection attempts.

    The statistics are guarded by a mutex, because CommsChannel calls tried() on its thread while the AsyncStore worker of the AddressBook calls toVariantMap() on its thread. Every field is private, and each accessor of a statistic reads it under the mutex. Only tried() changes the statistics. The address, the description and the creation time do not change after construction.

    See also CarrierAddress, AddressList, and Associate.