Click here to Skip to main content
15,922,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Lose window focus? Pin
PJ Arends25-Mar-05 7:17
professionalPJ Arends25-Mar-05 7:17 
GeneralRe: Lose window focus? Pin
Dominik Reichl25-Mar-05 8:20
Dominik Reichl25-Mar-05 8:20 
GeneralRe: Lose window focus? Pin
David Crow25-Mar-05 5:18
David Crow25-Mar-05 5:18 
GeneralRe: Lose window focus? Pin
Dominik Reichl25-Mar-05 5:47
Dominik Reichl25-Mar-05 5:47 
GeneralSmth. like firewall Pin
Static(x)24-Mar-05 23:24
Static(x)24-Mar-05 23:24 
GeneralRe: Smth. like firewall Pin
MMansonFan2529-Mar-05 23:27
MMansonFan2529-Mar-05 23:27 
GeneralMemory Problem on CPtrArray Pin
Nobitact24-Mar-05 23:17
Nobitact24-Mar-05 23:17 
GeneralRe: Memory Problem on CPtrArray Pin
Blake Miller25-Mar-05 6:40
Blake Miller25-Mar-05 6:40 
GeneralRe: Memory Problem on CPtrArray Pin
Nobitact25-Mar-05 15:17
Nobitact25-Mar-05 15:17 
GeneralRe: Memory Problem on CPtrArray Pin
Blake Miller28-Mar-05 4:05
Blake Miller28-Mar-05 4:05 
QuestionHow to write a Winsock application that captures localhost process packets Pin
covansys200024-Mar-05 23:13
covansys200024-Mar-05 23:13 
General.:: Bluetooth programming ::. (i need help) Pin
wise_8224-Mar-05 23:04
wise_8224-Mar-05 23:04 
GeneralRe: .:: Bluetooth programming ::. (i need help) Pin
toxcct25-Mar-05 1:09
toxcct25-Mar-05 1:09 
GeneralRe: .:: Bluetooth programming ::. (i need help) Pin
wise_8225-Mar-05 11:25
wise_8225-Mar-05 11:25 
GeneralRe: .:: Bluetooth programming ::. (i need help) Pin
toxcct26-Mar-05 4:36
toxcct26-Mar-05 4:36 
QuestionHow to avoid using multiple threads in winsock programming? Pin
johtib24-Mar-05 22:53
johtib24-Mar-05 22:53 
AnswerRe: How to avoid using multiple threads in winsock programming? Pin
geo_m25-Mar-05 2:26
geo_m25-Mar-05 2:26 
AnswerRe: How to avoid using multiple threads in winsock programming? Pin
RobJones25-Mar-05 6:30
RobJones25-Mar-05 6:30 
GeneralRe: How to avoid using multiple threads in winsock programming? Pin
johtib25-Mar-05 8:10
johtib25-Mar-05 8:10 
GeneralRe: How to avoid using multiple threads in winsock programming? Pin
Blake Miller28-Mar-05 4:08
Blake Miller28-Mar-05 4:08 
GeneralRe: How to avoid using multiple threads in winsock programming? Pin
johtib4-Apr-05 23:23
johtib4-Apr-05 23:23 
GeneralRe: How to avoid using multiple threads in winsock programming? Pin
Blake Miller6-Apr-05 5:09
Blake Miller6-Apr-05 5:09 
GeneralRe: How to avoid using multiple threads in winsock programming? Pin
johtib8-Apr-05 21:46
johtib8-Apr-05 21:46 
I've been trying to find a way to wait for multiple events, both timer and network events at the same time. It looks like I would need a function that does the job as WaitForMultipleObjects and WSAWaitForMultipleEvents at the same time. Or is it possible to use the WSAEVENTs with WaitForMultipleObjects?

I'm not 100% sure that I understood the bit about missing events. If I've understood it correctly events are signaled via flags and you can wait for these flags to be signaled via, for example, WaitForMultipleObjects.

If the timer expires it should set its flag and if I do:

loop {
  e = select_event_from_all_signaled_events()
  // handle e
}


I would eventually see that the timer event was signaled (I might catch it later than I intended but it shouldn't be lost). I only need to receive timer events every 15 seconds or so and precision is not important (if it differed by 2 second it would still be no problem).
GeneralRe: How to avoid using multiple threads in winsock programming? Pin
Blake Miller11-Apr-05 5:20
Blake Miller11-Apr-05 5:20 
GeneralRe: How to avoid using multiple threads in winsock programming? Pin
johtib11-Apr-05 6:39
johtib11-Apr-05 6:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.