Click here to Skip to main content
15,887,135 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: detect event in MFC dialog Pin
Albert Holguin5-Jun-14 9:49
professionalAlbert Holguin5-Jun-14 9:49 
GeneralRe: detect event in MFC dialog Pin
bkelly135-Jun-14 14:56
bkelly135-Jun-14 14:56 
GeneralRe: detect event in MFC dialog Pin
Albert Holguin6-Jun-14 6:44
professionalAlbert Holguin6-Jun-14 6:44 
Questioncheck if dll is registred as x32 or loaded to Out_of_process Pin
MrKBA25-May-14 12:37
MrKBA25-May-14 12:37 
AnswerRe: check if dll is registred as x32 or loaded to Out_of_process Pin
Randor 1-Jun-14 19:01
professional Randor 1-Jun-14 19:01 
Questionassign an event to a socket operation Pin
Member 798013518-May-14 15:57
Member 798013518-May-14 15:57 
AnswerRe: assign an event to a socket operation Pin
Richard MacCutchan18-May-14 21:28
mveRichard MacCutchan18-May-14 21:28 
GeneralRe: assign an event to a socket operation Pin
bkelly1319-May-14 13:07
bkelly1319-May-14 13:07 
Hello,
OK, its there as in:

Quote:
Note When issuing a blocking Winsock call such as listen, Winsock may need to wait for a network event before the call can complete.


I presumed that it could also be non-blocking. Then they carry on with:
Quote:
Winsock performs an alertable wait in this situation, which can be interrupted by an asynchronous procedure call (APC) scheduled on the same thread.


So in order to kill the program when no client comes a-calling, I need to learn this. I will search but if you have a link to a good article on this, that would be appreciated.

Thank you for your time.

Edit: While re-reading the MSDN page on listen(), I noticed that the words are:
Quote:
... Winsock may need to wait for a network event....

Directing attention to the word "may," that means that there are circumstances in which Winsock does not need to wait for a network event. Should that statement have stated that Winsock "will" wait for a network event? Or is there another way out of the Listen call?
Thank you for your time
If you work with telemetry, please check this bulletin board: www.irigbb.com



modified 19-May-14 19:46pm.

GeneralRe: assign an event to a socket operation Pin
Richard MacCutchan19-May-14 21:34
mveRichard MacCutchan19-May-14 21:34 
GeneralRe: assign an event to a socket operation Pin
bkelly1320-May-14 6:20
bkelly1320-May-14 6:20 
GeneralListen can be non-blocking Pin
bkelly133-Jun-14 8:19
bkelly133-Jun-14 8:19 
Questionmy icon in system tray always visible Pin
Member 104023906-May-14 8:16
professionalMember 104023906-May-14 8:16 
QuestionRe: my icon in system tray always visible Pin
Richard MacCutchan6-May-14 9:07
mveRichard MacCutchan6-May-14 9:07 
AnswerRe: my icon in system tray always visible Pin
Member 104023906-May-14 9:32
professionalMember 104023906-May-14 9:32 
SuggestionRe: my icon in system tray always visible Pin
Richard MacCutchan6-May-14 9:50
mveRichard MacCutchan6-May-14 9:50 
GeneralRe: my icon in system tray always visible Pin
Member 104023906-May-14 10:06
professionalMember 104023906-May-14 10:06 
GeneralRe: my icon in system tray always visible Pin
Richard MacCutchan6-May-14 10:19
mveRichard MacCutchan6-May-14 10:19 
GeneralRe: my icon in system tray always visible Pin
Member 104023906-May-14 11:05
professionalMember 104023906-May-14 11:05 
QuestionTo fix the first column of ClistView grid control Pin
sma123#2-May-14 7:22
sma123#2-May-14 7:22 
GeneralRe: To fix the first column of ClistView grid control Pin
Richard MacCutchan2-May-14 7:33
mveRichard MacCutchan2-May-14 7:33 
Questionevent arithmetic Pin
bkelly137-Apr-14 15:27
bkelly137-Apr-14 15:27 
GeneralRe: event arithmetic Pin
Richard MacCutchan7-Apr-14 22:03
mveRichard MacCutchan7-Apr-14 22:03 
AnswerRe: event arithmetic Pin
pasztorpisti8-Apr-14 10:06
pasztorpisti8-Apr-14 10:06 
GeneralRe: event arithmetic Pin
bkelly138-Apr-14 15:55
bkelly138-Apr-14 15:55 
GeneralRe: event arithmetic Pin
pasztorpisti8-Apr-14 22:57
pasztorpisti8-Apr-14 22:57 

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.