| 20 | } |
| 21 | |
| 22 | void 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 | |
| 50 | void check_rpc::rpc_onover() |
| 51 | { |
nothing calls this directly
no test coverage detected