Lab 4: Receive data from a node and show it on standard output
Similarly, samples which are send to the node are printed on the screen.
To demonstrate this we start villas pipe a second time with swapped local and remote addresses.
In the first terminal:
villas pipe lab3.conf udp_node1
Loading...
In a second terminal, we use -x to exchange input/output addresses:
villas pipe -x lab3.conf udp_node1
Loading...
Stopping villas pipe
By default, pipe terminates as soon as the input stream reaches the end.
In the examples above, the input stream is connected to the terminal where it wait for data entered by the keyboard.
In this case, the end of the stream is emitted by pressing Ctrl-D.
If the input stream is connected to a file, reaching the end of the file will cause termination of villas pipe.
Furthermore, the tool supports three more modes to terminate itself:
- If called with the
-l NUMswitch,villas pipeterminates afterNUMreceived samples. - If called with the
-L NUMswitch,villas pipeterminates afterNUMsent samples. - If called with the
-t NUMswitch,villas pipeterminates afterNUMseconds of execution.