|
HERMES Modem
Hermes ARQ/Broadcast modem
|
#include "arq_channels.h"#include <errno.h>#include <stdlib.h>#include <string.h>#include "hermes_log.h"
Functions | |
| static int | channel_open (chan_t **slot, size_t capacity) |
| static void | channel_close (chan_t *channel) |
| static void | channel_dispose (chan_t **slot) |
| int | arq_channel_bus_init (arq_channel_bus_t *bus) |
| Initialize ARQ channel bus. | |
| void | arq_channel_bus_close (arq_channel_bus_t *bus) |
| Close all ARQ channel endpoints to stop producers/consumers. | |
| void | arq_channel_bus_dispose (arq_channel_bus_t *bus) |
| Dispose ARQ channel resources. | |
| int | arq_channel_bus_try_send_cmd (arq_channel_bus_t *bus, const arq_cmd_msg_t *msg) |
| Try to enqueue a TCP control command into ARQ bus. | |
| int | arq_channel_bus_try_send_payload (arq_channel_bus_t *bus, const uint8_t *data, size_t len) |
| Try to enqueue TCP payload bytes into ARQ bus. | |
| int | arq_channel_bus_recv_cmd (arq_channel_bus_t *bus, arq_cmd_msg_t *msg) |
| Receive next TCP command from ARQ bus. | |
| int | arq_channel_bus_recv_payload (arq_channel_bus_t *bus, arq_bytes_msg_t *msg) |
| Receive next TCP payload message from ARQ bus. | |
| void arq_channel_bus_close | ( | arq_channel_bus_t * | bus | ) |
Close all ARQ channel endpoints to stop producers/consumers.
| bus | Bus to close. |
| void arq_channel_bus_dispose | ( | arq_channel_bus_t * | bus | ) |
Dispose ARQ channel resources.
| bus | Bus to dispose. |
| int arq_channel_bus_init | ( | arq_channel_bus_t * | bus | ) |
Initialize ARQ channel bus.
| bus | Bus structure to initialize. |
| int arq_channel_bus_recv_cmd | ( | arq_channel_bus_t * | bus, |
| arq_cmd_msg_t * | msg | ||
| ) |
Receive next TCP command from ARQ bus.
| bus | Bus instance. |
| msg | Output command message. |
| int arq_channel_bus_recv_payload | ( | arq_channel_bus_t * | bus, |
| arq_bytes_msg_t * | msg | ||
| ) |
Receive next TCP payload message from ARQ bus.
| bus | Bus instance. |
| msg | Output payload message. |
| int arq_channel_bus_try_send_cmd | ( | arq_channel_bus_t * | bus, |
| const arq_cmd_msg_t * | msg | ||
| ) |
Try to enqueue a TCP control command into ARQ bus.
| bus | Bus instance. |
| msg | Command message. |
| int arq_channel_bus_try_send_payload | ( | arq_channel_bus_t * | bus, |
| const uint8_t * | data, | ||
| size_t | len | ||
| ) |
Try to enqueue TCP payload bytes into ARQ bus.
| bus | Bus instance. |
| data | Payload bytes. |
| len | Payload length in bytes. |
|
static |
|
static |
|
static |