How can I check the number of currently connected hubs in DCpp, I guess there is some function that returns this, given that Hubs get this information somehow from the client I guess since there is no central server, alas I havn't been able to find it.
Thanks.
Connected to # of hubs
Moderator: Moderators
Code: Select all
struct Counts {
Counts(long n = 0, long r = 0, long o = 0) : normal(n), registered(r), op(o) { };
long normal;
long registered;
long op;
bool operator !=(const Counts& rhs) { return normal != rhs.normal || registered != rhs.registered || op != rhs.op; };
};
static Counts counts;
....
static string getCounts() {
char buf[128];
return string(buf, sprintf(buf, "%ld/%ld/%ld", counts.normal, counts.registered, counts.op));
}