![]() |
HAN-FUN API
1.5.3
This project provides the common implementation of ULE Alliance's HAN-FUN application protocol.
|
This file contains the implementation of the a HAN-FUN transport layer over the libuv library. More...
#include <iostream>
#include <iomanip>
#include <cassert>
#include <cstdlib>
#include <cstdint>
#include "uv.h"
#include "hanfun.h"
#include "application.h"
#include "transport.h"
#include "common.h"
Go to the source code of this file.
Data Structures | |
struct | msg_t |
Message sent between the concentrator and the nodes. More... | |
struct | hello_msg_t |
Hello message payload. More... | |
Macros | |
#define | NONE_MSG 0xFFFF |
No message primitive id. More... | |
#define | HELLO_MSG 0x0101 |
Hello message primitive id. More... | |
#define | DATA_MSG 0x0201 |
Data message primitive id. More... | |
#define | CHECK_STATUS() |
Helper macro the check libuv command status. | |
Functions | |
uv_buf_t | alloc_buffer (uv_handle_t *handle, size_t suggested_size) |
This function is used to allocate the buffers used with libuv. More... | |
void | print_error (uv_err_t status) |
Print a user friendly string for given status code. More... | |
This file contains the implementation of the a HAN-FUN transport layer over the libuv library.
For licensing information, please see the file 'LICENSE' in the root folder.
Initial development by Bithium S.A. [http://www.bithium.com]
Definition in file transport.cpp.