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

Method rpc_run

lib_acl_cpp/src/connpool/check_rpc.cpp:22–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22void check_rpc::rpc_run()
23{
24 // ������������
25 socket_stream stream;
26
27 // ������ get_vstream() ��õ� ACL_VSTREAM ������������
28 // ���� stream ������Ϊ�� acl_cpp �� acl �е�������
29 // �ͷ����������ն��ǻ��� ACL_VSTREAM���� ACL_VSTREAM ��
30 // �ڲ�ά������һ����/д�������������ڳ����ӵ����ݴ����У�
31 // ����ÿ�ν� ACL_VSTREAM ��Ϊ�ڲ����Ļ��������Դ�
32 ACL_VSTREAM* vstream = checker_.get_conn().get_vstream();
33 ACL_VSTREAM_SET_RWTIMO(vstream, 10);
34 (void) stream.open(vstream);
35 // ����Ϊ����ģʽ
36 stream.set_tcp_non_blocking(false);
37
38 // ����ͬ��������
39 monitor_.sio_check(checker_, stream);
40
41 // ����Ϊ������ģʽ
42 stream.set_tcp_non_blocking(true);
43
44 // �� ACL_VSTREAM �������������󶨣��������ܱ�֤���ͷ�����������ʱ
45 // ����ر��������ߵ����ӣ���Ϊ�����ӱ��������ڷ�����������ģ���Ҫ��
46 // ���첽���رշ�ʽ���йر�
47 stream.unbind();
48}
49
50void check_rpc::rpc_onover()
51{

Callers

nothing calls this directly

Calls 5

get_vstreamMethod · 0.45
get_connMethod · 0.45
openMethod · 0.45
sio_checkMethod · 0.45
unbindMethod · 0.45

Tested by

no test coverage detected