| 49 | namespace rpc { |
| 50 | |
| 51 | WebSocketInteractionCommand::WebSocketInteractionCommand( |
| 52 | cuid_t cuid, const std::shared_ptr<WebSocketSession>& wsSession, |
| 53 | DownloadEngine* e, const std::shared_ptr<SocketCore>& socket) |
| 54 | : Command(cuid), |
| 55 | e_(e), |
| 56 | socket_(socket), |
| 57 | writeCheck_(false), |
| 58 | wsSession_(wsSession) |
| 59 | { |
| 60 | e_->getWebSocketSessionMan()->addSession(wsSession_); |
| 61 | e_->addSocketForReadCheck(socket_, this); |
| 62 | } |
| 63 | |
| 64 | WebSocketInteractionCommand::~WebSocketInteractionCommand() |
| 65 | { |
nothing calls this directly
no test coverage detected