robertobucher / pysimCoder

Block diagram editor and real time code generator for Python
GNU General Public License v3.0
142 stars 31 forks source link

Communication: add TCP block with asynchronous send and receive #60

Closed michallenc closed 1 year ago

michallenc commented 1 year ago

Current TCP block TCPsocketTXRX operates in the same thread as main application and thus can slow down the application and violate RT capabilities. It also waits for received data if RX is used.

While this behaviour may be required for some applications it is not ideal for others. This commit adds new block TCPsocketAsyncBlk that sends and receives data in separate threads. Configurable TX buffer is used to store data to be send.