Click here to Skip to main content
15,919,898 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionModifying string.h Pin
CMas076-Jul-06 3:20
CMas076-Jul-06 3:20 
QuestionRe: Modifying string.h Pin
David Crow6-Jul-06 3:26
David Crow6-Jul-06 3:26 
AnswerRe: Modifying string.h Pin
Zac Howland6-Jul-06 3:31
Zac Howland6-Jul-06 3:31 
GeneralRe: Modifying string.h [modified] Pin
CMas076-Jul-06 3:37
CMas076-Jul-06 3:37 
GeneralRe: Modifying string.h Pin
Zac Howland6-Jul-06 3:58
Zac Howland6-Jul-06 3:58 
GeneralRe: Modifying string.h Pin
David Crow6-Jul-06 4:34
David Crow6-Jul-06 4:34 
AnswerRe: Modifying string.h Pin
ThatsAlok6-Jul-06 18:57
ThatsAlok6-Jul-06 18:57 
QuestionTCP question Pin
BambooMoon6-Jul-06 3:18
BambooMoon6-Jul-06 3:18 
If I have two processes connected via TCP (blocking), if one process writes data to the socket and then closes its end of the socket connection without any kind of handshake from the other process, will the other process still be able to read the data sent by the first process? Or will the data be thrown away when the first process closes the socket (in other words, is a handshake required)? In my situation, process A sends a large amount of data (perhaps a megabyte) and then needs to close to service other requests. Process B will always have a blocking read on the socket at the time that process A sends, but the read is specifically for a smaller number of bytes than the total number that process A sent. Process B has to read the header of the data to determine how long the rest of the message is, but by the time process B figures this out and posts another read, presumably process A will have closed its end of the socket.

It appears to me that process B is always getting all the data, but I cannot find any documentation that says that this is the expected behavior. I don't want it just to be a coincidence.
AnswerRe: TCP question Pin
led mike6-Jul-06 5:17
led mike6-Jul-06 5:17 
GeneralRe: TCP question Pin
BambooMoon6-Jul-06 6:42
BambooMoon6-Jul-06 6:42 
QuestionProblem with Smartgraph Pin
Semion_N6-Jul-06 3:00
Semion_N6-Jul-06 3:00 
AnswerRe: Problem with Smartgraph [modified] Pin
Justin Tay6-Jul-06 3:36
Justin Tay6-Jul-06 3:36 
GeneralRe: Problem with Smartgraph Pin
Semion_N6-Jul-06 4:13
Semion_N6-Jul-06 4:13 
AnswerRe: Problem with Smartgraph Pin
Semion_N6-Jul-06 4:43
Semion_N6-Jul-06 4:43 
GeneralRe: Problem with Smartgraph Pin
Justin Tay6-Jul-06 5:05
Justin Tay6-Jul-06 5:05 
AnswerI dont really understand Pin
Semion_N6-Jul-06 7:35
Semion_N6-Jul-06 7:35 
GeneralRe: I dont really understand Pin
Semion_N6-Jul-06 7:57
Semion_N6-Jul-06 7:57 
GeneralRe: I dont really understand Pin
Justin Tay6-Jul-06 8:20
Justin Tay6-Jul-06 8:20 
GeneralRe: I dont really understand Pin
Semion_N6-Jul-06 19:42
Semion_N6-Jul-06 19:42 
GeneralRe: I dont really understand Pin
Justin Tay6-Jul-06 19:55
Justin Tay6-Jul-06 19:55 
Question"HTML Builder" library for C++ Pin
peterchen6-Jul-06 2:56
peterchen6-Jul-06 2:56 
AnswerRe: "HTML Builder" library for C++ Pin
Wes Aday6-Jul-06 4:25
professionalWes Aday6-Jul-06 4:25 
AnswerRe: "HTML Builder" library for C++ Pin
led mike6-Jul-06 5:34
led mike6-Jul-06 5:34 
GeneralRe: "HTML Builder" library for C++ [modified] Pin
peterchen6-Jul-06 10:49
peterchen6-Jul-06 10:49 
GeneralRe: "HTML Builder" library for C++ Pin
led mike6-Jul-06 11:05
led mike6-Jul-06 11:05 

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.