add some debug output to RemoteUI
This commit is contained in:
parent
3e53ebb5d6
commit
fe98ba7494
|
@ -1,6 +1,7 @@
|
||||||
#include "remote.hh"
|
#include "remote.hh"
|
||||||
|
|
||||||
#include "display_buffer.hh"
|
#include "display_buffer.hh"
|
||||||
|
#include "debug.hh"
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
@ -153,6 +154,17 @@ DisplayBuffer read<DisplayBuffer>(int socket)
|
||||||
return db;
|
return db;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RemoteUI::RemoteUI(int socket)
|
||||||
|
: m_socket(socket)
|
||||||
|
{
|
||||||
|
write_debug("remote client connected: " + int_to_str(m_socket));
|
||||||
|
}
|
||||||
|
|
||||||
|
RemoteUI::~RemoteUI()
|
||||||
|
{
|
||||||
|
write_debug("remote client disconnected: " + int_to_str(m_socket));
|
||||||
|
}
|
||||||
|
|
||||||
void RemoteUI::print_status(const String& status, CharCount cursor_pos)
|
void RemoteUI::print_status(const String& status, CharCount cursor_pos)
|
||||||
{
|
{
|
||||||
Message msg(m_socket);
|
Message msg(m_socket);
|
||||||
|
|
|
@ -12,7 +12,8 @@ struct peer_disconnected {};
|
||||||
class RemoteUI : public UserInterface
|
class RemoteUI : public UserInterface
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RemoteUI(int socket) : m_socket(socket) {}
|
RemoteUI(int socket);
|
||||||
|
~RemoteUI();
|
||||||
|
|
||||||
void print_status(const String& status, CharCount cursor_pos) override;
|
void print_status(const String& status, CharCount cursor_pos) override;
|
||||||
void menu_show(const memoryview<String>& choices,
|
void menu_show(const memoryview<String>& choices,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user