![]() |
Bitcoin Core 31.1.0
P2P Digital Currency
|
#include <mp/proxy.h>#include <mp/util.h>#include <mp/proxy.capnp.h>#include <capnp/rpc-twoparty.h>#include <assert.h>#include <condition_variable>#include <functional>#include <kj/function.h>#include <map>#include <memory>#include <optional>#include <sstream>#include <string>#include <thread>Go to the source code of this file.
Classes | |
| struct | mp::InvokeContext |
| struct | mp::ClientInvokeContext |
| struct | mp::ServerInvokeContext< ProxyServer, CallContext_ > |
| struct | mp::ProxyClient< Thread > |
| struct | mp::ProxyServer< Thread > |
| class | mp::LoggingErrorHandler |
| Handler for kj::TaskSet failed task events. More... | |
| struct | mp::LogMessage |
| struct | mp::LogOptions |
| class | mp::Logger |
| class | mp::EventLoop |
| struct | mp::Waiter |
| class | mp::Connection |
| struct | mp::ServerVatId |
| struct | mp::ThreadContext |
Namespaces | |
| namespace | mp |
| Functions to serialize / deserialize common bitcoin types. | |
Macros | |
| #define | MP_LOGPLAIN(loop, ...) |
| #define | MP_LOG(loop, ...) |
Typedefs | |
| template<typename Interface, typename Params, typename Results> | |
| using | mp::ServerContext = ServerInvokeContext<ProxyServer<Interface>, ::capnp::CallContext<Params, Results>> |
| using | mp::LogFn = std::function<void(LogMessage)> |
| using | mp::ConnThreads = std::map<Connection*, std::optional<ProxyClient<Thread>>> |
| using | mp::ConnThread = ConnThreads::iterator |
Enumerations | |
| enum class | mp::Log { mp::Trace = 0 , mp::Debug , mp::Info , mp::Warning , mp::Error , mp::Raise } |
| Log flags. Update stringify function if changed! More... | |
Functions | |
| kj::StringPtr | mp::KJ_STRINGIFY (Log flags) |
| std::string | mp::LongThreadName (const char *exe_name) |
| std::tuple< ConnThread, bool > | mp::SetThread (GuardedRef< ConnThreads > threads, Connection *connection, const std::function< Thread::Client()> &make_thread) |
| template<typename InitInterface> | |
| std::unique_ptr< ProxyClient< InitInterface > > | mp::ConnectStream (EventLoop &loop, int fd) |
| template<typename InitInterface, typename InitImpl> | |
| void | mp::_Serve (EventLoop &loop, kj::Own< kj::AsyncIoStream > &&stream, InitImpl &init) |
| template<typename InitInterface, typename InitImpl> | |
| void | mp::_Listen (EventLoop &loop, kj::Own< kj::ConnectionReceiver > &&listener, InitImpl &init) |
| template<typename InitInterface, typename InitImpl> | |
| void | mp::ServeStream (EventLoop &loop, int fd, InitImpl &init) |
| template<typename InitInterface, typename InitImpl> | |
| void | mp::ListenConnections (EventLoop &loop, int fd, InitImpl &init) |
Variables | |
| ThreadContext | mp::g_thread_context |
| #define MP_LOG | ( | loop, | |
| ... ) |
Definition at line 209 of file proxy-io.h.
| #define MP_LOGPLAIN | ( | loop, | |
| ... ) |
Definition at line 207 of file proxy-io.h.