MCPcopy Create free account
hub / github.com/acl-dev/acl / start

Method start

app/net_tools/test_all.cpp:83–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void test_all::start()
84{
85 acl::rpc_request* req;
86
87 // ���� PING ����
88 req = new ping(ip_file_.c_str(), &ping_result_,
89 ping_npkt_, ping_delay_, ping_timeout_, ping_size_);
90 rpc_manager::get_instance().fork(req);
91
92 // ���� DNS ��ѯ����
93 req = new nslookup(domain_file_.c_str(), &ns_result_,
94 dns_ip_.c_str(), dns_port_, dns_timeout_);
95 rpc_manager::get_instance().fork(req);
96
97 // �����ʼ����͹���
98 smtp_client* smtp = new smtp_client();
99 (*smtp).set_callback(&smtp_result_)
100 .add_file(attach_.c_str())
101 .set_smtp(smtp_addr_.c_str(), smtp_port_)
102 .set_conn_timeout(conn_timeout_)
103 .set_rw_timeout(rw_timeout_)
104 .set_account(mail_user_.c_str())
105 .set_passwd(mail_pass_.c_str())
106 .set_from(mail_user_.c_str())
107 .set_subject("�ʼ����͹��̲���!")
108 .add_to(recipients_.c_str());
109 rpc_manager::get_instance().fork(smtp);
110
111 // �����ʼ����չ���
112 pop3_client* pop3 = new pop3_client();
113 (*pop3).set_callback(&pop3_result_)
114 .set_pop3(pop3_addr_.c_str(), pop3_port_)
115 .set_conn_timeout(conn_timeout_)
116 .set_rw_timeout(rw_timeout_)
117 .set_account(mail_user_.c_str())
118 .set_passwd(mail_pass_.c_str())
119 .set_recv_count(pop3_recv_all_ ? -1 : (int) pop3_recv_limit_)
120 .set_recv_save(pop3_save_);
121 rpc_manager::get_instance().fork(pop3);
122}
123
124void test_all::check_finish()
125{

Callers 15

fiber_threadFunction · 0.45
OnBnClickedTestallMethod · 0.45
savetoMethod · 0.45
pattern_removeMethod · 0.45
parallel_removeMethod · 0.45
proc_on_initMethod · 0.45
rpc_runMethod · 0.45
doRequestMethod · 0.45
proc_on_initMethod · 0.45
proc_on_initMethod · 0.45

Calls 5

set_passwdMethod · 0.80
set_rw_timeoutMethod · 0.80
c_strMethod · 0.45
forkMethod · 0.45
add_fileMethod · 0.45

Tested by

no test coverage detected