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.logging/make_logger.hpp"
29#include "ores.comms/messaging/message_types.hpp"
40 std::string client_identifier;
41 std::uint16_t client_version_major;
42 std::uint16_t client_version_minor;
56 inline static std::string_view logger_name =
57 "ores.comms.service.handshake_service";
61 static auto instance = make_logger(logger_name);
82 const std::function<std::uint32_t()>& sequence_generator,
83 const std::string& client_identifier,
84 std::uint8_t supported_compression = 0);
98 static boost::asio::awaitable<std::optional<handshake_result>>
101 std::uint32_t sequence,
102 const std::string& server_identifier);
compression_type
Compression algorithm used for payload compression.
Definition message_types.hpp:259
Main server application for ORE Studio.
Definition application.hpp:30
Contains the networking elements of the comms library.
Definition client.hpp:48
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
SSL connection wrapper for frame-based communication.
Definition connection.hpp:58
Result of a successful server-side handshake.
Definition handshake_service.hpp:38
Service for managing protocol handshake between client and server.
Definition handshake_service.hpp:54
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
static boost::asio::awaitable< std::optional< handshake_result > > perform_server_handshake(net::connection &conn, std::uint32_t sequence, const std::string &server_identifier)
Perform server-side handshake.
Definition handshake_service.cpp:146