-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathnanomsg.hpp
More file actions
53 lines (34 loc) · 1.05 KB
/
nanomsg.hpp
File metadata and controls
53 lines (34 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/* Node type: nanomsg.
*
* Author: Steffen Vogel <post@steffenvogel.de>
* SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include <villas/format.hpp>
#include <villas/list.hpp>
namespace villas {
namespace node {
// Forward declarations
class NodeCompat;
struct nanomsg {
struct {
int socket;
struct List endpoints;
} in, out;
Format *formatter;
};
char *nanomsg_print(NodeCompat *n);
int nanomsg_init(NodeCompat *n);
int nanomsg_destroy(NodeCompat *n);
int nanomsg_parse(NodeCompat *n, json_t *json);
int nanomsg_start(NodeCompat *n);
int nanomsg_stop(NodeCompat *n);
int nanomsg_type_stop();
int nanomsg_reverse(NodeCompat *n);
int nanomsg_poll_fds(NodeCompat *n, int fds[]);
int nanomsg_netem_fds(NodeCompat *n, int fds[]);
int nanomsg_read(NodeCompat *n, struct Sample *const smps[], unsigned cnt);
int nanomsg_write(NodeCompat *n, struct Sample *const smps[], unsigned cnt);
} // namespace node
} // namespace villas