TCP/IP module can not run multiple instances at the same time. It will fail if I use the asynchronous call to run multiple instances of TcpServer.runServer.vi. At
DM-37368, I tried to run two instances at the same time, one for SAL and the other one for GUI. However, only one of them can construct the TCP/IP connection successfully, which depends on which instance I run first.
The following references are useful for this use case:
1. Reentrancy: Allowing Simultaneous Calls to the Same SubVI
2. Asynchronously Calling Multiple Instances of a VI for Parallel Execution
3. Combining Option Flags into a Single Option Value
My use case is to run two different TCP/IP servers (with SAL and GUI) clients at the same time. Therefore, another option might be allow to listen multiple ports at the same time. The client will need to add the field in the header to identify its role. But I felt this option might make the code complex. We could discuss first to have a good and easy solution if you like.