| 253 | } |
| 254 | |
| 255 | bool 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 | |
| 278 | bool AFCWebSocketServer::AddNetSession(AFHttpSessionPtr session) |
| 279 | { |
nothing calls this directly
no outgoing calls
no test coverage detected