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

pipe: start/stop interfaces

This commit is contained in:
Steffen Vogel 2019-01-21 22:11:44 +01:00
parent 2d6188e5da
commit a374acb499

View file

@ -391,6 +391,8 @@ check: if (optarg == endptr)
if (ret)
throw RuntimeError("Failed to start node {}: reason={}", node_name(node), ret);
sn.startInterfaces();
/* Start threads */
Directions dirs = {
.send = Direction(node, &io, enable_send, limit_send),
@ -430,6 +432,8 @@ check: if (optarg == endptr)
if (ret)
throw RuntimeError("Failed to stop node type {}: reason={}", node_type_name(node->_vt), ret);
sn.stopInterfaces();
ret = io_close(&io);
if (ret)
throw RuntimeError("Failed to close IO");