VLink  2.3.0
A high-performance communication middleware
vlink::DiscoveryViewer::Process Struct Referencefinal

Identity of a process that hosts at least one endpoint for a URL. More...

#include <discovery_viewer.h>

Collaboration diagram for vlink::DiscoveryViewer::Process:

Public Member Functions

bool operator< (const Process &target) const noexcept
 Defines a stable ordering between two process descriptors. More...
 

Public Attributes

uint32_t type {0}
 Bitmask of ImplType kinds advertised by this process. More...
 
std::string host
 Host name of the process. More...
 
uint32_t pid {0}
 Process identifier. More...
 
std::string name
 Process or application name. More...
 
std::vector< std::string > ip_list
 Live discovery source IPv4 addresses, unique and sorted numerically. More...
 
double profiler {-1}
 CPU usage sample from one live address (-1 when unavailable). More...
 
bool bridge {false}
 

Detailed Description

Identity of a process that hosts at least one endpoint for a URL.

Announcements with the same role, host, PID, name and bridge origin share one address list. Each source address expires independently when its announcements stop.

Member Function Documentation

◆ operator<()

bool vlink::DiscoveryViewer::Process::operator< ( const Process &  target) const
noexcept

Defines a stable ordering between two process descriptors.

Sort key is type, then host, name, PID, bridge origin and finally the address list.

Parameters
targetRight-hand operand.
Returns
true when *this should appear before target.

Member Data Documentation

◆ bridge

bool vlink::DiscoveryViewer::Process::bridge {false}

Publisher created by proxy forwarding; absent in legacy announcements.

◆ host

std::string vlink::DiscoveryViewer::Process::host

Host name of the process.

◆ ip_list

std::vector<std::string> vlink::DiscoveryViewer::Process::ip_list

Live discovery source IPv4 addresses, unique and sorted numerically.

◆ name

std::string vlink::DiscoveryViewer::Process::name

Process or application name.

◆ pid

uint32_t vlink::DiscoveryViewer::Process::pid {0}

Process identifier.

◆ profiler

double vlink::DiscoveryViewer::Process::profiler {-1}

CPU usage sample from one live address (-1 when unavailable).

◆ type

uint32_t vlink::DiscoveryViewer::Process::type {0}

Bitmask of ImplType kinds advertised by this process.


The documentation for this struct was generated from the following file: