#include "cast/streaming/public/rpc_messenger.h"
#include <memory>
#include <string>
#include <utility>
#include "util/osp_logging.h"
namespace openscreen::cast {
namespace {
std::ostream& operator<<(std::ostream& out, const RpcMessage& message) { … }
}
constexpr RpcMessenger::Handle RpcMessenger::kInvalidHandle;
constexpr RpcMessenger::Handle RpcMessenger::kAcquireRendererHandle;
constexpr RpcMessenger::Handle RpcMessenger::kAcquireDemuxerHandle;
constexpr RpcMessenger::Handle RpcMessenger::kFirstHandle;
RpcMessenger::RpcMessenger(SendMessageCallback send_message_cb)
: … { … }
RpcMessenger::~RpcMessenger() { … }
RpcMessenger::Handle RpcMessenger::GetUniqueHandle() { … }
void RpcMessenger::RegisterMessageReceiverCallback(
RpcMessenger::Handle handle,
ReceiveMessageCallback callback) { … }
void RpcMessenger::UnregisterMessageReceiverCallback(
RpcMessenger::Handle handle) { … }
void RpcMessenger::ProcessMessageFromRemote(const uint8_t* message,
std::size_t message_len) { … }
void RpcMessenger::ProcessMessageFromRemote(
std::unique_ptr<RpcMessage> message) { … }
void RpcMessenger::SendMessageToRemote(const RpcMessage& rpc) { … }
bool RpcMessenger::IsRegisteredForTesting(RpcMessenger::Handle handle) { … }
WeakPtr<RpcMessenger> RpcMessenger::GetWeakPtr() { … }
}