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

Method run

lib_fiber/samples-gui/SimpleWin/FiberServer.cpp:46–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void CFiberServer::run(void)
47{
48 while (true) {
49 SOCKET s = accept(m_sock, NULL, NULL);
50 if (s == INVALID_SOCKET) {
51 break;
52 }
53
54 acl::fiber* fb = new CFiberClient(s);
55 fb->start();
56 }
57
58 if (m_autoDestroy) {
59 delete this;
60 }
61}

Callers

nothing calls this directly

Calls 2

acceptFunction · 0.50
startMethod · 0.45

Tested by

no test coverage detected