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

Method on_destroy

lib_acl_cpp/samples/aio/http_client/http_client.cpp:146–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146void http_client::on_destroy(http_stream* conn)
147{
148 printf("http_stream will be deleted!\r\n");
149 delete conn;
150 __destroy++;
151
152 if (--__aio_refer == 0) {
153 printf("%s: stop aio engine now!\r\n", __FUNCTION__);
154 handle_.stop();
155 }
156
157 if (--refered_ == 0) {
158 printf("============== delete http_client =============\r\n");
159 delete this;
160 }
161}
162
163void http_client::on_connect(http_stream& conn)
164{

Callers 1

destroyMethod · 0.80

Calls 1

stopMethod · 0.45

Tested by

no test coverage detected