Click here to Skip to main content
16,020,249 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionUser Control \ MFC Pin
Louai Haimour21-Aug-06 11:32
Louai Haimour21-Aug-06 11:32 
AnswerRe: User Control \ MFC Pin
Christian Graus21-Aug-06 18:39
protectorChristian Graus21-Aug-06 18:39 
GeneralRe: User Control \ MFC Pin
Louai Haimour27-Aug-06 8:56
Louai Haimour27-Aug-06 8:56 
GeneralRe: User Control \ MFC Pin
Christian Graus27-Aug-06 12:02
protectorChristian Graus27-Aug-06 12:02 
Question_getcwd Pin
stevelam21-Aug-06 10:10
stevelam21-Aug-06 10:10 
AnswerRe: _getcwd Pin
Chris Losinger21-Aug-06 10:15
professionalChris Losinger21-Aug-06 10:15 
AnswerRe: _getcwd Pin
Joe Woodbury21-Aug-06 19:16
professionalJoe Woodbury21-Aug-06 19:16 
QuestionHow to detect completion of Socket recv() function. Pin
Robert Palma Jr.21-Aug-06 10:01
Robert Palma Jr.21-Aug-06 10:01 
Vis C/C++ 6.0 Vis Studio

I am receiving web pages using recv().

I am looping and receiving chunks of the page
and am concatinating them to a buffer.

I get the whole file but the loop hangs because
I have no detection of the end of file.

If I manually close the socket, I always have the
full file.

I have tried the recv() MSG_PEEK flag inside of the loop
to detect the end of the file, but I don't seem to be
able to get it to work. It hangs as well.

I've seen some code on CodeProject that looks for
2 consequtive CRLFs but that really only works if you
are only expecting a Header.

Any help would be much appreciated.

Thanks,
Robert
Smile | :)



AnswerRe: How to detect completion of Socket recv() function. Pin
zzattack21-Aug-06 12:05
zzattack21-Aug-06 12:05 
GeneralRe: How to detect completion of Socket recv() function. Pin
Robert Palma Jr.22-Aug-06 6:28
Robert Palma Jr.22-Aug-06 6:28 
GeneralRe: How to detect completion of Socket recv() function. Pin
Robert Palma Jr.22-Aug-06 9:56
Robert Palma Jr.22-Aug-06 9:56 
GeneralRe: How to detect completion of Socket recv() function. Pin
zzattack22-Aug-06 10:14
zzattack22-Aug-06 10:14 
AnswerRe: How to detect completion of Socket recv() function. Pin
Ajesh.Sreevalsa21-Aug-06 18:44
Ajesh.Sreevalsa21-Aug-06 18:44 
GeneralRe: How to detect completion of Socket recv() function. Pin
Robert Palma Jr.22-Aug-06 6:26
Robert Palma Jr.22-Aug-06 6:26 
QuestionWhere to execute constructor? Pin
Oliver12321-Aug-06 9:37
Oliver12321-Aug-06 9:37 
AnswerRe: Where to execute constructor? Pin
Wes Aday21-Aug-06 9:47
professionalWes Aday21-Aug-06 9:47 
GeneralRe: Where to execute constructor? Pin
Oliver12321-Aug-06 11:19
Oliver12321-Aug-06 11:19 
GeneralRe: Where to execute constructor? Pin
Wes Aday21-Aug-06 11:24
professionalWes Aday21-Aug-06 11:24 
GeneralRe: Where to execute constructor? Pin
Oliver12321-Aug-06 12:00
Oliver12321-Aug-06 12:00 
GeneralRe: Where to execute constructor? Pin
Wes Aday21-Aug-06 12:03
professionalWes Aday21-Aug-06 12:03 
GeneralRe: Where to execute constructor? Pin
Rudolf Jan22-Aug-06 0:19
Rudolf Jan22-Aug-06 0:19 
GeneralRe: Where to execute constructor? Pin
Oliver12322-Aug-06 11:44
Oliver12322-Aug-06 11:44 
GeneralRe: Where to execute constructor? Pin
Oliver12322-Aug-06 16:28
Oliver12322-Aug-06 16:28 
QuestionDesign Patterns : Command Pattern? Pin
brodies21-Aug-06 9:15
brodies21-Aug-06 9:15 
AnswerRe: Design Patterns : Command Pattern? Pin
Neville Franks21-Aug-06 11:24
Neville Franks21-Aug-06 11:24 

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.