openMSX
|
#include <CliConnection.hh>
Public Member Functions | |
SocketConnection (CommandController &commandController, EventDistributor &eventDistributor, SOCKET sd) | |
~SocketConnection () override | |
void | output (std::string_view message) override |
![]() | |
void | setUpdateEnable (CliComm::UpdateType type, bool value) |
bool | getUpdateEnable (CliComm::UpdateType type) const |
void | start () |
Starts the helper thread. More... | |
![]() | |
CliListener (const CliListener &)=delete | |
CliListener & | operator= (const CliListener &)=delete |
virtual | ~CliListener ()=default |
virtual void | log (CliComm::LogLevel level, std::string_view message) noexcept=0 |
virtual void | update (CliComm::UpdateType type, std::string_view machine, std::string_view name, std::string_view value) noexcept=0 |
Additional Inherited Members | |
![]() | |
CliConnection (CommandController &commandController, EventDistributor &eventDistributor) | |
~CliConnection () override | |
virtual void | output (std::string_view message)=0 |
void | end () |
End this connection by sending the closing tag and then closing the stream. More... | |
virtual void | close ()=0 |
Close the connection. More... | |
void | startOutput () |
Send opening XML tag, should be called exactly once by a subclass shortly after opening a connection. More... | |
![]() | |
CliListener ()=default | |
![]() | |
AdhocCliCommParser | parser |
Poller | poller |
Definition at line 120 of file CliConnection.hh.
openmsx::SocketConnection::SocketConnection | ( | CommandController & | commandController, |
EventDistributor & | eventDistributor, | ||
SOCKET | sd | ||
) |
Definition at line 274 of file CliConnection.cc.
|
override |
Definition at line 282 of file CliConnection.cc.
References openmsx::CliConnection::end().
|
overridevirtual |
Implements openmsx::CliConnection.
Definition at line 329 of file CliConnection.cc.
References openmsx::Poller::abort(), openmsx::OPENMSX_INVALID_SOCKET, openmsx::CliConnection::poller, and openmsx::sock_send().