MCPcopy Create free account
hub / github.com/brainboxdotcc/DPP / get_fd

Method get_fd

src/dpp/socketengine.cpp:86–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84time_t last_time = time(nullptr);
85
86socket_events* socket_engine_base::get_fd(dpp::socket fd) {
87 std::unique_lock lock(fds_mutex);
88 auto iter = fds.find(fd);
89 if (iter == fds.end()) {
90 return nullptr;
91 }
92 return iter->second.get();
93}
94
95void socket_engine_base::inplace_modify_fd(dpp::socket fd, uint8_t extra_flags) {
96 bool should_modify;

Callers

nothing calls this directly

Calls 3

findMethod · 0.45
endMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected