Click here to Skip to main content
15,917,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Customizing Edit Control Pin
ThatsAlok1-Apr-07 23:01
ThatsAlok1-Apr-07 23:01 
Questionpwd command Pin
Arif Liminto1-Apr-07 5:00
professionalArif Liminto1-Apr-07 5:00 
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 
Hamed Mosavi wrote:
Is it my fault or it's a usual behavior?


No it's not your fault!. TCP protocol has been designed in such a way. Sometimes it really looks stupid. You can never know if the client is not alive at the other end when there's a n/w distruption occurs. It's done because, there may be flucuations in the n/w then and there if all these are reported as disconnect events, this would degrade TCP. So it abstracts the disconnections to the user. Still not completely sure why they dont do it!.Implement a "ping" like solution to your problem. The server sends "Are you there" periodically to the clients and the clients "must" reply to the question. If it doesn't then it's not there. In short you are making your own *protocol* to overcome this handicap in TCP.



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:19
Hamed Musavi1-Apr-07 5:19 
GeneralRe: How to notice socket disconnection? Pin
Eytukan1-Apr-07 5:48
Eytukan1-Apr-07 5:48 
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 

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.