LLDB mainline
|
#include <Transport.h>
Public Member Functions | |
Transport (lldb::IOObjectSP in, lldb::IOObjectSP out, LogCallback log_callback={}) | |
virtual | ~Transport ()=default |
void | Log (llvm::StringRef message) override |
Transport (const Transport &)=delete | |
Transport is not copyable. | |
void | operator= (const Transport &)=delete |
Public Member Functions inherited from lldb_private::JSONTransport< Request, Response, Notification > | |
JSONTransport (lldb::IOObjectSP in, lldb::IOObjectSP out) | |
llvm::Error | Send (const Notification &evt) override |
Sends an event, a message that does not require a response. | |
llvm::Expected< MainLoop::ReadHandleUP > | RegisterMessageHandler (MainLoop &loop, MessageHandler &handler) override |
RegisterMessageHandler registers the Transport with the given MainLoop and handles any incoming messages using the given MessageHandler. | |
llvm::Error | Write (const llvm::json::Value &message) |
Public Member Functions inherited from lldb_private::Transport< Request, Response, Notification > | |
virtual llvm::Error | Send (const Request &)=0 |
Sends a request, a message that expects a response. | |
virtual llvm::Error | Send (const Response &)=0 |
Sends a response to a specific request. | |
virtual llvm::Expected< MainLoop::ReadHandleUP > | RegisterMessageHandler (MainLoop &loop, MessageHandler &handler)=0 |
RegisterMessageHandler registers the Transport with the given MainLoop and handles any incoming messages using the given MessageHandler. | |
auto | Logv (const char *Fmt, Ts &&...Vals) |
Private Attributes | |
LogCallback | m_log_callback |
Additional Inherited Members | |
Public Types inherited from lldb_private::JSONTransport< Request, Response, Notification > | |
using | MessageHandler |
Public Types inherited from lldb_private::Transport< Request, Response, Notification > | |
using | Message |
using | MessageHandlerSP |
Static Public Attributes inherited from lldb_private::JSONTransport< Request, Response, Notification > | |
static constexpr size_t | kReadBufferSize |
Public for testing purposes, otherwise this should be an implementation detail. | |
Protected Member Functions inherited from lldb_private::JSONRPCTransport< Request, Response, Notification > | |
std::string | Encode (const llvm::json::Value &message) override |
llvm::Expected< std::vector< std::string > > | Parse () override |
Protected Attributes inherited from lldb_private::JSONTransport< Request, Response, Notification > | |
llvm::SmallString< kReadBufferSize > | m_buffer |
Static Protected Attributes inherited from lldb_private::JSONRPCTransport< Request, Response, Notification > | |
static constexpr llvm::StringLiteral | kMessageSeparator |
Definition at line 27 of file Transport.h.
Transport::Transport | ( | lldb::IOObjectSP | in, |
lldb::IOObjectSP | out, | ||
LogCallback | log_callback = {} ) |
Definition at line 16 of file Transport.cpp.
References m_log_callback.
Referenced by operator=(), and Transport().
|
virtualdefault |
Reimplemented from lldb_private::Transport< Request, Response, Notification >.
|
delete |
Transport is not copyable.
References Transport().
|
overridevirtual |
|
delete |
References Transport().
|
private |
Definition at line 43 of file Transport.h.
Referenced by Transport().