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

Method service_on_bind

lib_acl_cpp/src/master/master_udp.cpp:200–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200void master_udp::service_on_bind(void* ctx, ACL_VSTREAM* stream)
201{
202 master_udp* mu = (master_udp *) ctx;
203 acl_assert(mu);
204
205 socket_stream* ss = NEW socket_stream();
206 if (!ss->open(stream)) {
207 logger_fatal("open stream error!");
208 }
209 stream->context = ss;
210 mu->push_back(ss);
211
212 mu->proc_on_bind(*ss);
213}
214
215void master_udp::service_on_unbind(void* ctx, ACL_VSTREAM* stream)
216{

Callers

nothing calls this directly

Calls 4

socket_streamClass · 0.50
openMethod · 0.45
push_backMethod · 0.45
proc_on_bindMethod · 0.45

Tested by

no test coverage detected