Helper functions required for communication classes. More...
Classes | |
| class | AbstractStateMachine |
| Abstract Finite State Machine (FMS) that transits between states. More... | |
| class | ConcurrentQueue |
| Thread-safe wrapper around STL queue using locking mechanism. More... | |
| class | FiniteStateMachine |
| Finite State Machine (FMS) controller. More... | |
| struct | Ipv4Address |
| IPv4 address wrapper helper. More... | |
| class | MachineState |
| Machine state abstract class. More... | |
| class | NetworkLayer |
| Network communication abstraction layer. More... | |
| class | TtlTimer |
| Time To Live countdown timer. More... | |
Enumerations | |
| enum class | SdServerState { NotReady , InitialWaitPhase , RepetitionPhase , MainPhase } |
| Service discovery server machine state. More... | |
| enum class | SdClientState { ServiceNotSeen , ServiceSeen , ServiceReady , Stopped , InitialWaitPhase , RepetitionPhase } |
| Service discovery client machine state. More... | |
| enum class | PubSubState { ServiceDown , NotSubscribed , Subscribed } |
| Publish-subscribe server machine state. More... | |
Functions | |
| bool | operator== (Ipv4Address address1, Ipv4Address address2) |
| Ipv4Address equality operator override. More... | |
| bool | operator!= (Ipv4Address address1, Ipv4Address address2) |
| Ipv4Address inequality operator override. More... | |
| void | Inject (std::vector< uint8_t > &vector, uint16_t value) |
| Inject a short value into a byte vector. More... | |
| void | Inject (std::vector< uint8_t > &vector, uint32_t value) |
| Inject an integer value into a byte vector. More... | |
| void | Concat (std::vector< uint8_t > &vector1, std::vector< uint8_t > &&vector2) |
| Concat the second vector into the end of the first vector. More... | |
| uint16_t | ExtractShort (const std::vector< uint8_t > &vector, std::size_t &offset) |
| Extract a short value from a byte vector. More... | |
| uint32_t | ExtractInteger (const std::vector< uint8_t > &vector, std::size_t &offset) |
| Extract an integer value from a byte vector. More... | |
Helper functions required for communication classes.
|
strong |
|
strong |
Service discovery client machine state.
|
strong |
| void ara::com::helper::Concat | ( | std::vector< uint8_t > & | vector1, |
| std::vector< uint8_t > && | vector2 | ||
| ) |
Concat the second vector into the end of the first vector.
| vector1 | First vector |
| vector2 | Second vector |
| uint32_t ara::com::helper::ExtractInteger | ( | const std::vector< uint8_t > & | vector, |
| std::size_t & | offset | ||
| ) |
Extract an integer value from a byte vector.
| vector | Byte vector |
| offset | Extract offset at the vector |
| uint16_t ara::com::helper::ExtractShort | ( | const std::vector< uint8_t > & | vector, |
| std::size_t & | offset | ||
| ) |
Extract a short value from a byte vector.
| vector | Byte vector |
| offset | Extract offset at the vector |
| void ara::com::helper::Inject | ( | std::vector< uint8_t > & | vector, |
| uint16_t | value | ||
| ) |
Inject a short value into a byte vector.
| vector | Byte vector |
| value | Short input value |
| void ara::com::helper::Inject | ( | std::vector< uint8_t > & | vector, |
| uint32_t | value | ||
| ) |
Inject an integer value into a byte vector.
| vector | Byte vector |
| value | Integer input value |
|
inline |
Ipv4Address inequality operator override.
| address1 | First address to compare |
| address2 | Second address to compare |
|
inline |
Ipv4Address equality operator override.
| address1 | First address to compare |
| address2 | Second address to compare |