2014-11-19 00:06:40 +08:00
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
struct SMTP_METER;
|
|
|
|
|
class smtp_callback;
|
|
|
|
|
class smtp_store : public acl::rpc_request
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
smtp_store(const char* user, const char* smtp_ip,
|
|
|
|
|
const SMTP_METER& meter, smtp_callback& callback);
|
|
|
|
|
protected:
|
|
|
|
|
~smtp_store();
|
|
|
|
|
|
|
|
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD>麯<EFBFBD><E9BAAF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̴߳<DFB3><CCB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
virtual void rpc_run();
|
|
|
|
|
|
|
|
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD>麯<EFBFBD><E9BAAF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̴߳<DFB3><CCB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̣<EFBFBD><CCA3>յ<EFBFBD><D5B5><EFBFBD><EFBFBD>߳<EFBFBD><DFB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɵ<EFBFBD><C9B5><EFBFBD>Ϣ
|
|
|
|
|
virtual void rpc_onover();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
bool ok_;
|
|
|
|
|
char* user_;
|
|
|
|
|
char* smtp_ip_;
|
|
|
|
|
SMTP_METER* meter_;
|
|
|
|
|
smtp_callback& callback_;
|
|
|
|
|
acl::string dbpath_;
|
|
|
|
|
bool create_tbl(acl::db_handle& db);
|
|
|
|
|
void insert_tbl(acl::db_handle& db);
|
2013-08-18 17:42:25 +08:00
|
|
|
|
};
|