![]() |
Bitcoin Core 29.99.0
P2P Digital Currency
|
#include <interfaces/init.h>
#include <ipc/capnp/context.h>
#include <ipc/capnp/init.capnp.h>
#include <ipc/capnp/init.capnp.proxy.h>
#include <ipc/capnp/protocol.h>
#include <ipc/exception.h>
#include <ipc/protocol.h>
#include <kj/async.h>
#include <logging.h>
#include <mp/proxy-io.h>
#include <mp/proxy-types.h>
#include <mp/util.h>
#include <util/threadnames.h>
#include <cassert>
#include <cerrno>
#include <future>
#include <memory>
#include <mutex>
#include <optional>
#include <string>
#include <sys/socket.h>
#include <system_error>
#include <thread>
Go to the source code of this file.
Namespaces | |
namespace | ipc |
namespace | ipc::capnp |
Functions | |
std::unique_ptr< Protocol > | ipc::capnp::MakeCapnpProtocol () |
Context m_context |
Definition at line 101 of file protocol.cpp.
std::optional<mp::EventLoop> m_loop |
EventLoop object which manages I/O events for all connections.
Definition at line 104 of file protocol.cpp.
std::optional<mp::EventLoopRef> m_loop_ref |
Reference to the same EventLoop.
Increments the loop’s refcount on creation, decrements on destruction. The loop thread exits when the refcount reaches 0. Other IPC objects also hold their own EventLoopRef.
Definition at line 108 of file protocol.cpp.
std::thread m_loop_thread |
Definition at line 102 of file protocol.cpp.
mp::Connection* m_parent_connection {nullptr} |
Connection to parent, if this is a child process spawned by a parent process.
Definition at line 110 of file protocol.cpp.