Click here to Skip to main content
15,885,895 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWTSSendMessage Failing Pin
Arun Parthasarathy7-Sep-11 1:58
Arun Parthasarathy7-Sep-11 1:58 
AnswerRe: WTSSendMessage Failing Pin
Code-o-mat7-Sep-11 4:09
Code-o-mat7-Sep-11 4:09 
QuestionCTime Problem? I don't think so....but who knows? Pin
Kyudos6-Sep-11 13:31
Kyudos6-Sep-11 13:31 
NewsRe: CTime Problem? I don't think so....but who knows? Pin
Kyudos6-Sep-11 14:59
Kyudos6-Sep-11 14:59 
AnswerRe: CTime Problem? I don't think so....but who knows? Pin
zhangyupeng7-Sep-11 1:41
zhangyupeng7-Sep-11 1:41 
AnswerRe: CTime Problem? I don't think so....but who knows? Pin
David Crow7-Sep-11 6:19
David Crow7-Sep-11 6:19 
GeneralRe: CTime Problem? I don't think so....but who knows? Pin
Kyudos7-Sep-11 15:23
Kyudos7-Sep-11 15:23 
QuestionIOCompletion in a server also acting as client Pin
Ole Gry Pedersen6-Sep-11 3:52
Ole Gry Pedersen6-Sep-11 3:52 
Hi
I have today a server using the "old" paradigm of one thread per connection. It works fine, but it does have problems when many simultaneous connections hits.

I'm looking at the IO completion, which to me look like the way I would like to go. Reducing the number of threads to ideally one per processor sounds promising.

But I have one problem I have not been able to find a solution for.

The server application is working as a pure request/response application, but a number of the requests will cause the server application to setup a connection to another server, send a request, receive a response, and then answer the original request with this information.

My problem is: How do I avoid blocking the worker thread (that received the original request) while I'm waiting for the connection to the next server to be completed. Is there a way to use IO completion while waiting for the connect() to finalize (without starting a new thread) ?

Thanks
Ole
AnswerRe: IOCompletion in a server also acting as client Pin
«_Superman_»6-Sep-11 16:56
professional«_Superman_»6-Sep-11 16:56 
QuestionDebugging Remote Pin
kLvin725-Sep-11 22:54
kLvin725-Sep-11 22:54 
AnswerRe: Debugging Remote Pin
Erudite_Eric7-Sep-11 6:12
Erudite_Eric7-Sep-11 6:12 
QuestionProblem with SetLayeredWindowAttribute Pin
Cold_Fearing_Bird5-Sep-11 19:51
Cold_Fearing_Bird5-Sep-11 19:51 
AnswerRe: Problem with SetLayeredWindowAttribute Pin
Iain Clarke, Warrior Programmer5-Sep-11 21:17
Iain Clarke, Warrior Programmer5-Sep-11 21:17 
GeneralRe: Problem with SetLayeredWindowAttribute Pin
Cold_Fearing_Bird5-Sep-11 21:51
Cold_Fearing_Bird5-Sep-11 21:51 
SuggestionHelp me to choose right "Certification" Pin
shanmugarajaa5-Sep-11 18:57
shanmugarajaa5-Sep-11 18:57 
GeneralRe: Help me to choose right "Certification" PinPopular
CPallini5-Sep-11 22:03
mveCPallini5-Sep-11 22:03 
GeneralRe: Help me to choose right "Certification" Pin
zhzh6033696217-Sep-11 4:02
zhzh6033696217-Sep-11 4:02 
GeneralRe: Help me to choose right "Certification" Pin
shanmugarajaa7-Sep-11 5:40
shanmugarajaa7-Sep-11 5:40 
GeneralRe: Help me to choose right "Certification" Pin
David Crow7-Sep-11 6:30
David Crow7-Sep-11 6:30 
GeneralRe: Help me to choose right "Certification" Pin
shanmugarajaa7-Sep-11 7:38
shanmugarajaa7-Sep-11 7:38 
QuestionHow to simulate shift-tab to go to previous control? Pin
Gagnon Claude5-Sep-11 14:35
Gagnon Claude5-Sep-11 14:35 
AnswerRe: How to simulate shift-tab to go to previous control? Pin
Code-o-mat6-Sep-11 0:53
Code-o-mat6-Sep-11 0:53 
QuestionSafe App Pin
john56325-Sep-11 3:30
john56325-Sep-11 3:30 
AnswerRe: Safe App Pin
«_Superman_»5-Sep-11 3:46
professional«_Superman_»5-Sep-11 3:46 
GeneralRe: Safe App Pin
john56325-Sep-11 3:53
john56325-Sep-11 3:53 

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.