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

Function acl_foreach

lib_acl_cpp/src/master/master_proc.cpp:109–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107 ACL_ITER iter;
108
109 acl_foreach(iter, tokens) {
110 const char* addr = (const char*) iter.data;
111 ACL_VSTREAM* sstream = acl_vstream_listen(addr, 128);
112 if (sstream == NULL) {
113 logger_error("listen %s error %s", addr, last_serror());
114 close_all_listener(sstreams);
115 acl_argv_free(tokens);
116 return false;
117 }
118
119 service_on_listen(this, sstream);
120 acl_event_enable_listen(eventp, sstream, 0,
121 listen_callback, this);
122 sstreams.push_back(sstream);
123 }
124 acl_argv_free(tokens);
125
126 // ��ʼ�����ò���

Callers

nothing calls this directly

Calls 6

acl_vstream_listenFunction · 0.85
acl_argv_freeFunction · 0.85
acl_event_enable_listenFunction · 0.85
close_all_listenerFunction · 0.70
last_serrorFunction · 0.50
push_backMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…