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

Method run

app/master/tools/master_dispatch/server/client/ClientConnection.cpp:21–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21void ClientConnection::run()
22{
23 // �����Ƚ��׽���Ϊ����״̬����������ߵ��ö�ʱ�����̷��� -1
24 acl_non_blocking(conn_->sock_handle(), ACL_BLOCKING);
25
26 // ���������ַ��͹��̽��ͻ����׽��ִ��������
27 if (ManagerTimer::transfer(this) == false)
28 // �������������ʧ�ܣ��������������У��ɶ�ʱ��
29 // �����
30 ClientManager::get_instance().set(this);
31 else
32 {
33 // ���ԴӼ�����ɾ��
34 ClientManager::get_instance().del(this);
35 delete this;
36 }
37}
38
39bool ClientConnection::expired() const
40{

Callers

nothing calls this directly

Calls 4

acl_non_blockingFunction · 0.85
sock_handleMethod · 0.45
setMethod · 0.45
delMethod · 0.45

Tested by

no test coverage detected