2019-07-27 22:44:32 +08:00
|
|
|
|
#include "StdAfx.h"
|
2014-11-19 00:25:21 +08:00
|
|
|
|
#include "db_host.h"
|
|
|
|
|
|
|
|
|
|
db_host::db_host(unsigned int id, const char* addr,
|
|
|
|
|
long long int count)
|
|
|
|
|
: id_(id)
|
|
|
|
|
, count_(count)
|
|
|
|
|
{
|
|
|
|
|
addr_ = acl_mystrdup(addr);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
db_host::~db_host(void)
|
|
|
|
|
{
|
|
|
|
|
acl_myfree(addr_);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
idx_host::idx_host(unsigned int id, const char* addr,
|
|
|
|
|
long long int count)
|
|
|
|
|
: db_host(id, addr, count)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
idx_host::~idx_host()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
dat_host::dat_host(unsigned int id, const char* addr,
|
|
|
|
|
long long int count, int priority)
|
|
|
|
|
: db_host(id, addr, count)
|
|
|
|
|
{
|
|
|
|
|
priority_ = priority;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dat_host::~dat_host()
|
|
|
|
|
{
|
|
|
|
|
}
|