Goby3  3.1.5a
2024.05.23
goby::middleware::terminate Namespace Reference

Classes

class  Application
 

Functions

std::pair< bool, protobuf::TerminateResponsecheck_terminate (const protobuf::TerminateRequest &request, const std::string &app_name)
 Checks if the terminate request is for this application, either by target_name or PID. More...
 

Function Documentation

◆ check_terminate()

std::pair<bool, protobuf::TerminateResponse> goby::middleware::terminate::check_terminate ( const protobuf::TerminateRequest request,
const std::string &  app_name 
)
inline

Checks if the terminate request is for this application, either by target_name or PID.

Parameters
requestRequest message from goby_terminate
app_nameThe current application name (typically cfg().app().name())
Returns
pair: first is a boolean: does this request match us? second is the response if so

Definition at line 48 of file terminate.h.