VLink  2.0.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::string ip
 IP address of the host. More...
 
double profiler {-1}
 Most recent CPU usage sample (-1 when unavailable). More...
 

Detailed Description

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

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, IP, name and finally PID.

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

Member Data Documentation

◆ host

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

Host name of the process.

◆ ip

std::string vlink::DiscoveryViewer::Process::ip

IP address of the host.

◆ 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}

Most recent CPU usage sample (-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: