ORE Studio 0.0.4
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
heartbeat_service Class Referencefinal

Service for handling heartbeat (ping/pong) protocol on the server. More...

#include <heartbeat_service.hpp>

Collaboration diagram for heartbeat_service:
Collaboration graph

Static Public Member Functions

static boost::asio::awaitable< void > handle_ping (net::connection &conn, std::uint32_t sequence, std::uint32_t correlation_id)
 Handle incoming ping from client and send pong response.
 

Detailed Description

Service for handling heartbeat (ping/pong) protocol on the server.

Provides server-side handling of ping messages by sending pong responses. Client-side heartbeat is handled by the client's message loop using correlation IDs for response matching.

Member Function Documentation

◆ handle_ping()

boost::asio::awaitable< void > handle_ping ( net::connection conn,
std::uint32_t  sequence,
std::uint32_t  correlation_id 
)
static

Handle incoming ping from client and send pong response.

Parameters
connConnection to send pong response on
sequenceSequence number for pong frame
correlation_idCorrelation ID to echo back in pong