#include "quiche/quic/tools/interactive_cli.h"
#include <termios.h>
#include <unistd.h>
#include <algorithm>
#include <cerrno>
#include <cstring>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "absl/status/status.h"
#include "absl/strings/ascii.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_split.h"
#include "absl/strings/string_view.h"
#include "quiche/quic/core/io/quic_event_loop.h"
#include "quiche/quic/core/io/socket.h"
#include "quiche/common/platform/api/quiche_logging.h"
#include "quiche/common/quiche_callbacks.h"
namespace quic {
namespace {
void Write(absl::string_view data) { … }
}
InteractiveCli::InteractiveCli(QuicEventLoop* event_loop,
LineCallback line_callback)
: … { … }
InteractiveCli::~InteractiveCli() { … }
void InteractiveCli::ResetLine() { … }
void InteractiveCli::RestoreCurrentInputLine() { … }
void InteractiveCli::PrintLine(absl::string_view line) { … }
void InteractiveCli::OnSocketEvent(QuicEventLoop* event_loop, SocketFd fd,
QuicSocketEventMask events) { … }
}