Click here to Skip to main content
15,900,108 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: What makes C and C++ a "good" language? Pin
Rajesh R Subramanian25-Sep-12 1:14
professionalRajesh R Subramanian25-Sep-12 1:14 
GeneralRe: What makes C and C++ a "good" language? Pin
CPallini25-Sep-12 2:22
mveCPallini25-Sep-12 2:22 
AnswerRe: What makes C and C++ a "good" language? Pin
ErnestoNet25-Sep-12 6:44
ErnestoNet25-Sep-12 6:44 
QuestionAudio creation/conversion SDK's Pin
Member 929954618-Sep-12 6:27
Member 929954618-Sep-12 6:27 
Questionsocket read on a keep alive request waits until connection timeout - II Pin
Jayapal Chandran17-Sep-12 20:36
Jayapal Chandran17-Sep-12 20:36 
AnswerCrosspost Pin
Peter_in_278017-Sep-12 20:55
professionalPeter_in_278017-Sep-12 20:55 
GeneralRe: Crosspost Pin
Jayapal Chandran18-Sep-12 11:12
Jayapal Chandran18-Sep-12 11:12 
AnswerRe: socket read on a keep alive request waits until connection timeout - II Pin
pasztorpisti17-Sep-12 21:23
pasztorpisti17-Sep-12 21:23 
Since you are using blocking sockets (and not async sockets) you have to find out the size of the response and read exactly that many bytes from the socket. If its chunked encoding then you have to read till the end.

Blocking mode sockets with raw api calls work like this: When you send() data the send() function returns only if an error occurs or the whole buffer you provided could be written out the send buffer of the socket. recv() works a little bit different, it returns immediately even if only a single byte of data is available in the receive buffer of the socket and you can't assume that a consequent recv() call would block if your buffer wasn't filled up completely during the previous call. This behaviour of recv() can be changed to wait for a whole buffer by specifying the MSG_WAITALL flag on windows but that is not recommended and that flag isn't supported everwhere.
GeneralRe: socket read on a keep alive request waits until connection timeout - II Pin
Jayapal Chandran18-Sep-12 11:13
Jayapal Chandran18-Sep-12 11:13 
GeneralRe: socket read on a keep alive request waits until connection timeout - II Pin
pasztorpisti18-Sep-12 12:09
pasztorpisti18-Sep-12 12:09 
QuestionMultiple selection in Tree control(Non MFC) Pin
Ram Shelke17-Sep-12 20:10
Ram Shelke17-Sep-12 20:10 
AnswerRe: Multiple selection in Tree control(Non MFC) Pin
Richard MacCutchan17-Sep-12 22:35
mveRichard MacCutchan17-Sep-12 22:35 
GeneralRe: Multiple selection in Tree control(Non MFC) Pin
Ram Shelke17-Sep-12 23:01
Ram Shelke17-Sep-12 23:01 
GeneralRe: Multiple selection in Tree control(Non MFC) Pin
Richard MacCutchan17-Sep-12 23:12
mveRichard MacCutchan17-Sep-12 23:12 
AnswerRe: Multiple selection in Tree control(Non MFC) Pin
Chris Meech18-Sep-12 3:59
Chris Meech18-Sep-12 3:59 
GeneralRe: Multiple selection in Tree control(Non MFC) Pin
Richard MacCutchan18-Sep-12 4:10
mveRichard MacCutchan18-Sep-12 4:10 
GeneralRe: Multiple selection in Tree control(Non MFC) Pin
Chris Meech18-Sep-12 4:15
Chris Meech18-Sep-12 4:15 
QuestionSingle system instance Pin
Taria16-Sep-12 23:16
Taria16-Sep-12 23:16 
AnswerRe: Single system instance PinPopular
Jochen Arndt16-Sep-12 23:35
professionalJochen Arndt16-Sep-12 23:35 
GeneralRe: Single system instance Pin
Michael Haephrati18-Sep-12 10:48
professionalMichael Haephrati18-Sep-12 10:48 
QuestionHow to recognize a table in a pdf file Pin
LuigiSc216-Sep-12 4:10
LuigiSc216-Sep-12 4:10 
AnswerRe: How to recognize a table in a pdf file Pin
Mohibur Rashid16-Sep-12 4:40
professionalMohibur Rashid16-Sep-12 4:40 
QuestionHint for the network check to be done in c++ Pin
en41115-Sep-12 2:39
en41115-Sep-12 2:39 
AnswerRe: Hint for the network chek Pin
Richard MacCutchan15-Sep-12 3:16
mveRichard MacCutchan15-Sep-12 3:16 
QuestionHow can i create a numeric constant from a numeric variable ? Pin
s.n.arruda15-Sep-12 0:57
s.n.arruda15-Sep-12 0: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.