Network configuration
Adresses and ports
As shown in the Getting started chapter, default values work well for testing the diode on a single machine. But for real application, ip addresses and ports must be configured properly. There are three points in the diode chain where those settings should be provided.
TCP data source
The diode-send side gets data from TCP connections (for instance, to receive data from diode-send-file). It is necessary to specify IP address and port in which TCP connections will be accepted with the following parameter:
[sender]
bind_tcp = "<ip:port>"
Default value in the configuration file is 127.0.0.1:5001.
TCP data destination
On the diode-receive side, data will be sent to TCP connected client (for instance, to connect to diode-receive-file). To specify listening IP and TCP port:
[receiver]
to_tcp = "<ip:port>"
Default value in the configuration file is 127.0.0.1:5002.
UDP transfer
UDP transfer is used to transfer data from diode-send and diode-receive. Settings IP address and UDP port is necessary. This tuple (addr,port) will be used as destination address for the sender and listening on the receiver.
udp_addr = "127.0.0.1"
udp_port = [ 5000 ]
Default value in the configuration file is 127.0.0.1 and the port list is set to 5000.
Note
Multiple ports can be configured in this option. This is detailed in chapter Multithreading.