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

Method enable_error

lib_acl_cpp/src/stream/aio_stream.cpp:430–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428}
429
430void aio_stream::enable_error()
431{
432 acl_assert(stream_);
433
434 if ((status_ & STATUS_HOOKED_ERROR)) {
435 return;
436 }
437 status_ |= STATUS_HOOKED_ERROR;
438
439 handle_->increase(); // �����첽������
440
441 // ע��ص������Խػ�ر�ʱ�Ĺ���
442 acl_aio_add_close_hook(stream_, close_callback, this);
443
444 // ע��ص������Խػ�ʱʱ�Ĺ���
445 acl_aio_add_timeo_hook(stream_, timeout_callback, this);
446}
447
448int aio_stream::close_callback(ACL_ASTREAM* stream acl_unused, void* ctx)
449{

Callers 7

aio_socket_streamMethod · 0.80
openMethod · 0.80
aio_istreamMethod · 0.80
aio_ostreamMethod · 0.80
openMethod · 0.80
aio_fstreamMethod · 0.80
openMethod · 0.80

Calls 3

acl_aio_add_close_hookFunction · 0.85
acl_aio_add_timeo_hookFunction · 0.85
increaseMethod · 0.80

Tested by

no test coverage detected