Hi,
I'm not actually doing a TCP server, but I need to implement a similar threading model
in my app, so this will serve as a good example. I have done a TCP server few times
with different programming languages and here's a pseudocode how I do it
do
{
connection = waitForConnection(port, -1) // -1 means wait forever
if(connection != NULL)
{
// Here, a new thread is created for each client and data transfer is started
// The original thread continues to wait for connections
}
}
while(running)I don't understand how could this be done with LabView. With the use of local variables,
I can think of a solution that could process the clients, if the number of clients is known
at development time.
Can I somehow create threads with LabView at run-time?
This whole thread issue in LabView is quite confusing to me, so if someone knows a good
solution to that TCP server problem, I would really appreciate it. I think that would help me
understand this matter.
Thanks.