20#ifndef ORES_COMMS_SERVICE_HANDSHAKE_SERVICE_HPP
21#define ORES_COMMS_SERVICE_HANDSHAKE_SERVICE_HPP
27#include <boost/asio/awaitable.hpp>
28#include "ores.utility/log/make_logger.hpp"
29#include "ores.comms/messaging/message_types.hpp"
33namespace ores::comms::service {
46 inline static std::string_view logger_name =
47 "ores.comms.service.handshake_service";
51 static auto instance = make_logger(logger_name);
72 const std::function<std::uint32_t()>& sequence_generator,
73 const std::string& client_identifier,
74 std::uint8_t supported_compression = 0);
87 static boost::asio::awaitable<std::optional<messaging::compression_type>>
90 std::uint32_t sequence,
91 const std::string& server_identifier);
Contains the networking elements of the comms library.
Definition client.hpp:42
Implements logging for ORE Studio.
Definition lifecycle_manager.hpp:30
SSL connection wrapper for frame-based communication.
Definition connection.hpp:36
Service for managing protocol handshake between client and server.
Definition handshake_service.hpp:44
static boost::asio::awaitable< std::optional< messaging::compression_type > > perform_server_handshake(net::connection &conn, std::uint32_t sequence, const std::string &server_identifier)
Perform server-side handshake.
Definition handshake_service.cpp:136
static boost::asio::awaitable< messaging::compression_type > perform_client_handshake(net::connection &conn, const std::function< std::uint32_t()> &sequence_generator, const std::string &client_identifier, std::uint8_t supported_compression=0)
Perform client-side handshake.
Definition handshake_service.cpp:44