1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00
Commit graph

81 commits

Author SHA1 Message Date
2a0311f05f socket: use correct values for sockaddr lengths (closes #177) 2018-07-16 21:59:23 +02:00
60f55ec178 improve naming of struct node_type function pointers (closes #150) 2018-07-16 11:00:15 +02:00
Dennis Potter
72e627b327 Fixes #166, all node interfaces are modified
The functions now look like this

int node_read(struct node *n, struct sample *smps[], unsigned cnt, unsigned *release);
int node_write(struct node *n, struct sample *smps[], unsigned cnt, unsigned *release);

This commit enables nodes to control how many samples will
be released by the framework through *release
2018-07-11 18:14:29 +02:00
Dennis Potter
6150a36411 Changed all node_write() functions 2018-07-07 17:48:07 +02:00
Dennis Potter
4663f55e4b Changed all node_read() functions to support a *cnt instead of cnt 2018-07-07 17:07:45 +02:00
fc6f63b192 cmake: change sub-libraries to be statically linked 2018-07-03 18:25:15 +02:00
0c8e52da4e socket: do not block in sendto() 2018-06-15 14:56:48 +02:00
4ba077d14e io: remove state-less IO calls 2018-05-12 15:25:29 +02:00
c0313c7963 refactored: io_format -> format_type 2018-05-12 13:57:39 +02:00
c59e0948c3 io: use dots instead of hyphens in format names 2018-05-08 08:45:18 +02:00
f31a7b0ffb get rid of strncpy as much as possible 2018-04-04 08:53:00 +02:00
0017d1bcb1 refactor: change include prefix 2018-02-04 16:40:52 +01:00
bfa8407665 netem: support loading distribution directly from config instead of a separate file 2017-12-20 11:23:55 +01:00
3077722476 netem: fix network emulation 2017-12-14 13:23:19 +01:00
7c52de9b0a socket: do not fail if stale socket does not exist 2017-10-27 21:46:40 +02:00
7d6ca30f8a socket: lift limitation of packet lengths (was 1500 bytes) 2017-10-27 19:15:23 +02:00
2443f7c2fa socket: add support for AF_UNIX domain sockets 2017-10-26 18:32:51 +02:00
702dc34052 c++: add proper casts from void * 2017-10-20 11:54:00 +02:00
3c27971cc7 socket: treat EPERM as a warning (see #120) 2017-10-18 13:23:00 +02:00
ce5f4e5a60 some refactoring in json parsing 2017-10-16 08:09:07 +02:00
b03748ac2c another fix for #120 (sendto: invalid argument) 2017-09-23 23:45:39 -06:00
5e620942ce adding new field "flags" to struct sample 2017-09-16 15:04:59 +02:00
6922e273bb io: renamed formats (msg -> villas-binary, villas -> villas-human) 2017-09-04 14:39:15 +02:00
6d495c1a35 add new bitmask to samples to indicate which fields are valid 2017-09-04 14:28:55 +02:00
5b4e4a4eb7 socket: remove obsolete settings 'endian' and 'header' 2017-08-31 09:28:44 +02:00
9f3d806755 add node_fd() support to most node types 2017-08-30 09:21:35 +02:00
fc53728b34 socket: most of the format specific error handling is now in the io subsystem 2017-08-23 15:48:05 +02:00
3eea0c67bb - introduce low-level interface for new IO subsystem: we now have a fully extensible system for new IO formats and file formats
- reworked file node-type to remove in / out directions
2017-08-14 14:42:07 +02:00
c5fc72dd78 adding pluggable IO formats 2017-08-05 21:02:09 +02:00
434fe6dbd6 replaced libconfig by jansson for parsing the configuration (huge commit) 2017-08-03 00:19:27 +02:00
b59a989278 cleanup trailing whitespaces 2017-07-25 12:07:06 +02:00
522ded3ea7 made most of Linux dependencies optional
VILLASnode now compiles on OS X Yosemite :-)
2017-07-25 12:07:06 +02:00
49c0e9957a using memdup() will invalidate pointers to the object which might have been used during _init() and _parse() calls 2017-07-09 14:36:09 +02:00
2b913d4d69 tests: fix valgrind warnings 2017-07-02 23:57:03 +02:00
5f262ffc9a socket: improve checks for multicast support 2017-06-28 10:56:10 +02:00
a994de62e2 socket: added support for multicast adressing 2017-06-28 10:39:41 +02:00
50cc0a99a0 socket: show reason for invalid packets 2017-06-27 08:49:23 +00:00
e639b67015 socket: rewrite and fixes for layer=„ip“ and layer=„eth“ 2017-05-28 18:49:49 +02:00
d4fe802a9c socket: fix socket_compare_addr for AF_PACKET addresses 2017-05-28 18:48:01 +02:00
d749c9a244 socket: use union instead of casts for socket address 2017-05-28 18:40:22 +02:00
2651181900 socket: added some checks for the local and remote addresses 2017-05-28 18:38:20 +02:00
8cab5cde96 added verify_source setting to socket node-type 2017-05-28 13:43:00 +02:00
48dd5953e0 several workarounds to start daemon without super-user privilges (closes #43) 2017-05-24 14:47:24 +00:00
08a5aa2320 socket: fix compiler error because of undefined macro 2017-05-23 15:33:59 +02:00
98cd2938af add new msg_buffer() functions to read / write multiple struct sample from / to a buffer using the struct msg wire protocol. 2017-05-23 15:22:37 +02:00
465999d608 socket: save MSG_PEEK recv(2) call by using a fixed allocation.
This should work for most data link layers.
2017-05-23 15:21:40 +02:00
a1a56a9f0a msg: use new macro to define max packet size 2017-05-23 13:55:13 +02:00
f6909de568 add new msg_buffer() functions to read / write multiple struct sample from / to a buffer using the struct msg wire protocol. 2017-05-23 13:02:20 +02:00
49054eef9f cleanup: removed trailing whitespaces in code 2017-05-05 19:24:16 +00:00
74ee677b41 fix pointer mistake 2017-05-05 19:09:57 +00:00