AddressEntry

A scored network address with usage statistics.

Declared in src/libs/libpair/address/AddressEntry.hpp
Group pair

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, Associate.

In this section