Classes | |
| class | TCPInterface |
| class | UDPInterface |
Enumerations | |
| enum | ByteOrder { BE = 0, LE } |
| enum | return_statuses { OK = 0, INIT_FAILED = -1, BAD_PARAM = -2, SOCKET_ERROR = -3, SOCKET_CLOSED = -4, NO_MESSAGES_RECEIVED = -5, READ_FAILED = -6, WRITE_FAILED = -7, CLOSE_FAILED = -8, SOCKET_TIMEOUT = -9 } |
Functions | |
| int32_t | find_magic_word (uint8_t *in, uint32_t buf_size, size_t magic_word) |
| template<typename T > | |
| T | read_be (unsigned char *bufArray, const unsigned int &size, const unsigned int &offset, const float &factor, const unsigned int &valueOffset) |
| template<typename T > | |
| T | read_be (unsigned char *bufArray, const unsigned int &size, const unsigned int &offset) |
| template<typename T > | |
| T | read_le (uint8_t *bufArray, const uint32_t &size, const uint32_t &offset, const float &factor, const uint32_t &valueOffset) |
| template<typename T > | |
| T | read_le (unsigned char *bufArray, const unsigned int &size, const unsigned int &offset) |
| std::string | return_status_desc (const return_statuses &ret) |
| bool | system_is_big_endian () |
| template<typename T > | |
| std::vector< uint8_t > | write_be (T *source) |
| template<typename T > | |
| std::vector< uint8_t > | write_le (T *source) |
| Enumerator | |
|---|---|
| BE | |
| LE | |
Definition at line 21 of file network_utils.h.
| Enumerator | |
|---|---|
| OK | |
| INIT_FAILED | |
| BAD_PARAM | |
| SOCKET_ERROR | |
| SOCKET_CLOSED | |
| NO_MESSAGES_RECEIVED | |
| READ_FAILED | |
| WRITE_FAILED | |
| CLOSE_FAILED | |
| SOCKET_TIMEOUT | |
Definition at line 28 of file network_interface.h.
|
inline |
Definition at line 152 of file network_utils.h.
| T AS::Network::read_be | ( | unsigned char * | bufArray, |
| const unsigned int & | size, | ||
| const unsigned int & | offset, | ||
| const float & | factor, | ||
| const unsigned int & | valueOffset | ||
| ) |
Definition at line 96 of file network_utils.h.
| T AS::Network::read_be | ( | unsigned char * | bufArray, |
| const unsigned int & | size, | ||
| const unsigned int & | offset | ||
| ) |
Definition at line 119 of file network_utils.h.
| T AS::Network::read_le | ( | uint8_t * | bufArray, |
| const uint32_t & | size, | ||
| const uint32_t & | offset, | ||
| const float & | factor, | ||
| const uint32_t & | valueOffset | ||
| ) |
Definition at line 40 of file network_utils.h.
| T AS::Network::read_le | ( | unsigned char * | bufArray, |
| const unsigned int & | size, | ||
| const unsigned int & | offset | ||
| ) |
Definition at line 65 of file network_utils.h.
| std::string AS::Network::return_status_desc | ( | const return_statuses & | ret | ) |
|
inline |
Definition at line 27 of file network_utils.h.
| std::vector<uint8_t> AS::Network::write_be | ( | T * | source | ) |
Definition at line 127 of file network_utils.h.
| std::vector<uint8_t> AS::Network::write_le | ( | T * | source | ) |
Definition at line 73 of file network_utils.h.