1#ifndef _DITTO_CONNECTION_REQUEST_
2#define _DITTO_CONNECTION_REQUEST_
4#include "ConnectionRequestAuthorization.hpp"
5#include "ConnectionType.hpp"
11#include <unordered_map>
13typedef struct dittoffi_connection_request dittoffi_connection_request_t;
24 dittoffi_connection_request_t *ffi_connection_request;
27 dittoffi_connection_request_t *ffi_connection_request);
28 dittoffi_connection_request_t *to_ffi()
const;
29 void authorize(ConnectionRequestAuthorization
authorization)
const;
111 ConnectionRequestHandler;
Contains information about a remote peer that has requested a connection.
Definition ConnectionRequest.hpp:21
nlohmann::json peer_metadata() const
Metadata associated with the remote peer.
Definition ConnectionRequest.cpp:36
ConnectionType connection_type() const
The network transport of this connection request.
Definition ConnectionRequest.cpp:57
std::string identity_service_metadata_json_string() const
JSON-encoded metadata for the remote peer that is provided by the identity service.
Definition ConnectionRequest.cpp:50
std::string peer_key_string() const
The unique peer key of the remote peer.
Definition ConnectionRequest.cpp:28
nlohmann::json identity_service_metadata() const
Metadata for the remote peer that is provided by the identity service.
Definition ConnectionRequest.cpp:46
std::string peer_metadata_json_string() const
JSON encoded metadata associated with the remote peer.
Definition ConnectionRequest.cpp:40
basic_json<> json
default JSON class
Definition json.hpp:2933
Definition Presence.cpp:146