987a59a5aa
cpp: ported SuperNode
2018-11-30 20:46:59 +01:00
e33e1904b8
refactor: warning() => warn()
2018-11-30 20:38:31 +01:00
06ef762ad9
socket: use pre-allocated buffers to avoid dynamic allocations and syscalls in critical path
2018-11-30 20:33:11 +01:00
40521cf5dd
socket: enable raw socket only on linux and if libnl3-route was found ( closes #210 )
2018-10-31 10:38:43 +01:00
8e052eaa5e
do not send offsets of network node-types
2018-10-20 16:23:26 +02:00
2677623c8c
socket: fix unused variable
2018-09-08 00:05:47 +02:00
d35971c26c
refactor: update copyright years
2018-08-20 18:40:03 +02:00
df94f7fb91
socket: adapt to new signal code and separate node-type configuration into in/out sections
2018-08-20 18:26:14 +02:00
abdec22993
plugin: replace plugin_name() by type-specific wrappers
2018-08-20 18:16:44 +02:00
a5edd4c0f5
code style: refactor indention of switch/case
2018-08-17 12:51:54 +02:00
afc529626a
fix some includes
2018-08-13 00:00:09 +02:00
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