G
Guest
Hello everyone,
I am implementing a multithreaded tcp client with two classes,
cNetworkManager class and cUI Class, I created a secondary thread for
receiving packets using blocking "Receive" method in cNetworkManager and when
a packet is received I want to raise an event to cUI Class, but I don't want
to raise that event on my secondary thread, so does anyone know how can I
notify my main thread in cNetworkManager so the thread could raise the event
for cUI class.
Regards,
I am implementing a multithreaded tcp client with two classes,
cNetworkManager class and cUI Class, I created a secondary thread for
receiving packets using blocking "Receive" method in cNetworkManager and when
a packet is received I want to raise an event to cUI Class, but I don't want
to raise that event on my secondary thread, so does anyone know how can I
notify my main thread in cNetworkManager so the thread could raise the event
for cUI class.
Regards,