libuav original

Dependents:   UAVCAN UAVCAN_Subscriber

Embed: (wiki syntax)

« Back to documentation index

Server Class Reference

Server Class Reference

This server is an alternative to DistributedServer with the following differences:

  • It is not distributed, so using it means introducing a single point of failure into the system.
More...

#include <server.hpp>

Inherits uavcan::dynamic_node_id_server::AbstractServer.

Public Member Functions

bool guessIfAllDynamicNodesAreAllocated (const MonotonicDuration &allocation_activity_timeout=MonotonicDuration::fromMSec(Allocation::MAX_REQUEST_PERIOD_MS *2), const MonotonicDuration &min_uptime=MonotonicDuration::fromMSec(6000)) const
 This can be used to guess if there are any un-allocated dynamic nodes left in the network.
const NodeDiscoverergetNodeDiscoverer () const
 This is useful for debugging/testing/monitoring.

Protected Types

enum  NodeAwareness
 

These values represent the level of awareness of a certain node by the server.

More...

Detailed Description

This server is an alternative to DistributedServer with the following differences:

  • It is not distributed, so using it means introducing a single point of failure into the system.
  • It takes less code space and requires less RAM, which makes it suitable for resource-constrained applications.

This version is suitable only for simple non-critical systems.

Definition at line 28 of file centralized/server.hpp.


Member Enumeration Documentation

enum NodeAwareness [inherited]

These values represent the level of awareness of a certain node by the server.

Definition at line 40 of file node_discoverer.hpp.


Member Function Documentation

const NodeDiscoverer& getNodeDiscoverer (  ) const [inherited]

This is useful for debugging/testing/monitoring.

Definition at line 108 of file abstract_server.hpp.

bool guessIfAllDynamicNodesAreAllocated ( const MonotonicDuration &  allocation_activity_timeout = MonotonicDuration::fromMSec(Allocation::MAX_REQUEST_PERIOD_MS * 2),
const MonotonicDuration &  min_uptime = MonotonicDuration::fromMSec(6000) 
) const [inherited]

This can be used to guess if there are any un-allocated dynamic nodes left in the network.

Definition at line 68 of file abstract_server.hpp.