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

Method SendMsg

src/plugin/net/src/AFCWebSocketServer.cpp:255–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255bool AFCWebSocketServer::SendMsg(const char* msg, const size_t msg_len, const AFGUID& session_id)
256{
257 // AFScopeRdLock xGuard(rw_lock_);
258
259 // AFHttpEntity* pNetObject = GetNetSession(session_id);
260
261 // if (pNetObject == nullptr)
262 //{
263 // return false;
264 //}
265
266 // auto frame = std::make_shared<std::string>();
267 // brynet::net::WebSocketFormat::wsFrameBuild(msg,
268 // msg_len,
269 // *frame,
270 // brynet::net::WebSocketFormat::WebSocketFrameType::BINARY_FRAME,
271 // true,
272 // false);
273
274 // pNetObject->GetSession()->send(frame);
275 return true;
276}
277
278bool AFCWebSocketServer::AddNetSession(AFHttpSessionPtr session)
279{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected