MCPcopy Create free account
hub / github.com/OpenArkStudio/ARK / GetNetSession

Method GetNetSession

src/plugin/net/src/AFCWebSocketServer.cpp:319–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317}
318
319AFHttpSessionPtr AFCWebSocketServer::GetNetSession(const AFGUID& session_id)
320{
321 auto it = sessions_.find(session_id);
322 return (it != sessions_.end() ? it->second : nullptr);
323}
324
325bool AFCWebSocketServer::SendMsg(AFMsgHead* head, const char* msg_data, const int64_t session_id)
326{

Callers 1

StartServerMethod · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected