I'm running CVI 5.01 on Windows 2000.
I want to run a server in its own isolated thread from the main app(and the gui).
I'm registering a server in a new thread, and external clients are able to connect to the server.
However, I am not receiving any TCP Server callbacks in the new thread.
The RegisterTCPserver function call identifies a callback function, but its not getting called(or not receiving events).
Any Ideas? Is there anything special I need to do in the new thread? Is there anything special I need to do in the server callback function?
Also, is it possible to use the SDK SleepEx function to wake on TCP callbacks?
The basic shell of the TCP thread is as follows:
TCPThread
{
RegisterTCPServer(Port, ServerCallback, (void *) SERVERTAG);
while(!done)
{
Sleep(0);
}
}
Thanks.