Click here to Skip to main content
15,912,578 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: pwd command Pin
CPallini1-Apr-07 6:09
mveCPallini1-Apr-07 6:09 
GeneralRe: pwd command Pin
Eytukan1-Apr-07 6:14
Eytukan1-Apr-07 6:14 
GeneralRe: pwd command Pin
CPallini1-Apr-07 7:33
mveCPallini1-Apr-07 7:33 
GeneralRe: pwd command Pin
Eytukan1-Apr-07 19:56
Eytukan1-Apr-07 19:56 
QuestionHow to notice socket disconnection? [modified] Pin
Hamed Musavi1-Apr-07 4:29
Hamed Musavi1-Apr-07 4:29 
AnswerRe: How to notice socket disconnection? Pin
Eytukan1-Apr-07 4:54
Eytukan1-Apr-07 4:54 
GeneralRe: How to notice socket disconnection? Pin
Hamed Musavi1-Apr-07 5:19
Hamed Musavi1-Apr-07 5:19 
GeneralRe: How to notice socket disconnection? Pin
Eytukan1-Apr-07 5:48
Eytukan1-Apr-07 5:48 
Hamed Mosavi wrote:
check connection in a thread?"

Exactly. But you can still do it with timers but for console applications, threads would be prefered. Otherwise you need to implement callbacks& message loops.

Hamed Mosavi wrote:
but this increase workload significantly


Yeah it certainly is an overhead. But I haven't seen any visible degradation in the system. We can do like this. You can maintain a data structure that keeps track of "last" response recieved from the clients. Rather than sending ping to all clients, you traverse thru the container(data structure that you maintain to keep track of client event times) and send ping request only to clients that has not sent any messages for so long. This way you can reduce the overhead.




Press: 1500 to 2,200 messages in just 6 days? How's that possible sir?
Dr.Brad :Well,I just replied to everything Graus did and then argued with Negus for a bit.

GeneralRe: How to notice socket disconnection? Pin
Hamed Musavi1-Apr-07 5:53
Hamed Musavi1-Apr-07 5:53 
GeneralRe: How to notice socket disconnection? Pin
Eytukan1-Apr-07 5:57
Eytukan1-Apr-07 5:57 
AnswerRe: How to notice socket disconnection? Pin
ThatsAlok1-Apr-07 22:29
ThatsAlok1-Apr-07 22:29 
GeneralRe: How to notice socket disconnection? Pin
Hamed Musavi2-Apr-07 1:56
Hamed Musavi2-Apr-07 1:56 
AnswerRe: How to notice socket disconnection? Pin
Sachin R Sangoi2-Apr-07 1:17
Sachin R Sangoi2-Apr-07 1:17 
GeneralRe: How to notice socket disconnection? Pin
Hamed Musavi2-Apr-07 1:50
Hamed Musavi2-Apr-07 1:50 
Questionretrieve registry key path from HKEY Pin
bahaa1236541-Apr-07 2:53
bahaa1236541-Apr-07 2:53 
AnswerRe: retrieve registry key path from HKEY Pin
Eytukan1-Apr-07 6:13
Eytukan1-Apr-07 6:13 
GeneralRe: retrieve registry key path from HKEY Pin
bahaa1236541-Apr-07 6:53
bahaa1236541-Apr-07 6:53 
GeneralRe: retrieve registry key path from HKEY Pin
Hamed Musavi1-Apr-07 8:54
Hamed Musavi1-Apr-07 8:54 
AnswerRe: retrieve registry key path from HKEY Pin
Hamid_RT1-Apr-07 18:17
Hamid_RT1-Apr-07 18:17 
AnswerRe: retrieve registry key path from HKEY Pin
ThatsAlok1-Apr-07 22:27
ThatsAlok1-Apr-07 22:27 
QuestionSerial Programming Pin
Guddappa T H1-Apr-07 2:50
Guddappa T H1-Apr-07 2:50 
QuestionRe: Serial Programming Pin
Eytukan1-Apr-07 6:19
Eytukan1-Apr-07 6:19 
AnswerRe: Serial Programming Pin
ThatsAlok1-Apr-07 22:26
ThatsAlok1-Apr-07 22:26 
QuestionWindows Explorer-Style MFC Application - urgent Pin
deeps_cute1-Apr-07 1:55
deeps_cute1-Apr-07 1:55 
AnswerRe: Windows Explorer-Style MFC Application - urgent Pin
Hamed Musavi1-Apr-07 4:50
Hamed Musavi1-Apr-07 4:50 

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.