MCPcopy Create free account
hub / github.com/caozhiyi/CppNet / SetAcceptCallback

Method SetAcceptCallback

net/CppNetImpl.cpp:136–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void CCppNetImpl::SetAcceptCallback(const connection_call_back& func) {
137 _accept_call_back = func;
138}
139
140bool CCppNetImpl::ListenAndAccept(const std::string& ip, uint16_t port) {
141 if (!_accept_call_back) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected