MCPcopy Create free account
hub / github.com/aria2/aria2 / WebSocketInteractionCommand

Method WebSocketInteractionCommand

src/WebSocketInteractionCommand.cc:51–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49namespace rpc {
50
51WebSocketInteractionCommand::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
64WebSocketInteractionCommand::~WebSocketInteractionCommand()
65{

Callers

nothing calls this directly

Calls 2

addSocketForReadCheckMethod · 0.80
addSessionMethod · 0.45

Tested by

no test coverage detected