MCPcopy Create free account
hub / github.com/daniele77/cli / CliTelnetSession

Method CliTelnetSession

include/cli/detail/genericasioremotecli.h:454–461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

452public:
453
454 CliTelnetSession(Scheduler& _scheduler, asiolib::ip::tcp::socket _socket, Cli& _cli, const std::function< void(std::ostream&)>& _exitAction, std::size_t historySize ) :
455 InputDevice(_scheduler),
456 TelnetSession(std::move(_socket)),
457 CliSession(_cli, TelnetSession::OutStream(), historySize),
458 poll(*this, *this)
459 {
460 ExitAction([this, _exitAction](std::ostream& _out){ _exitAction(_out), Disconnect(); } );
461 }
462protected:
463
464 void OnConnect() override

Callers

nothing calls this directly

Calls 1

OutStreamClass · 0.85

Tested by

no test coverage detected