05-25-2022 02:35 PM
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."
05-26-2022 01:00 PM
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();
}