#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.
|
| namespace | mp |
| | Functions to serialize / deserialize common bitcoin types.
|
|
| 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) |
◆ MP_LOG
| #define MP_LOG |
( |
| loop, |
|
|
| ... ) |
Value:MP_LOGPLAIN(loop, __VA_ARGS__) <<
"{" << LongThreadName((loop).m_exe_name) <<
"} "
#define MP_LOGPLAIN(loop,...)
Definition at line 209 of file proxy-io.h.
◆ MP_LOGPLAIN
| #define MP_LOGPLAIN |
( |
| loop, |
|
|
| ... ) |
Value:if (
mp::Logger logger{(loop).m_log_opts, __VA_ARGS__}; logger) logger
Definition at line 207 of file proxy-io.h.