MCPcopy Create free account
hub / github.com/OpenVPN/openvpn3-linux / GetResponse

Method GetResponse

src/common/requiresqueue.cpp:326–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324
325
326const std::string RequiresQueue::GetResponse(ClientAttentionType type,
327 ClientAttentionGroup group,
328 uint32_t id) const
329{
330 for (auto &e : slots)
331 {
332 if (e.type == type && e.group == group && e.id == id)
333 {
334 if (!e.provided)
335 {
336 throw RequiresQueueException("Request never provided by front-end");
337 }
338 return e.value;
339 }
340 }
341 throw RequiresQueueException("No matching entry found in the request queue");
342}
343
344
345const std::string RequiresQueue::GetResponse(ClientAttentionType type,

Callers 4

BackendClientObjectMethod · 0.80
connectMethod · 0.80
initialize_clientMethod · 0.80
selftestFunction · 0.80

Calls 1

Tested by 1

selftestFunction · 0.64