LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

UDP callback mechanism

In my code, I have multiple calls to createUDPchannelConfig with a different UDP port for each callback. Will this create a thread for each call to createUDPchannelConfig?

 

The UDP callback mechanism documentation is a bit confusing to me. 

 

 "Windows The callback mechanism is event driven. Each thread creates a window to which the system asynchronously posts FD_READ messages when data is available at the port."

0 Kudos
Message 1 of 2
(819 Views)

I think I actually figured this out. I'm trying to figure out how to put the UDP callbacks in their own thread. Do I need to do something like this 

Thread callbackfunction(){

  createUDPchannelConfig(udpcallback, other arguments);

  createUDPchannelConfig(udpcallback, other arguments);

  ...

}

UDPcallback UDPRead(){

     UdpRead();

     UdpAnalyze();

}

0 Kudos
Message 2 of 2
(791 Views)