Click here to Skip to main content
16,006,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: About Socket Buffer Pin
manish.patel19-Nov-07 0:50
manish.patel19-Nov-07 0:50 
GeneralRe: About Socket Buffer Pin
Matthew Faithfull19-Nov-07 1:03
Matthew Faithfull19-Nov-07 1:03 
GeneralRe: About Socket Buffer Pin
manish.patel19-Nov-07 1:10
manish.patel19-Nov-07 1:10 
AnswerRe: About Socket Buffer Pin
Matthew Faithfull19-Nov-07 1:22
Matthew Faithfull19-Nov-07 1:22 
GeneralRe: About Socket Buffer Pin
Mark Salsbery19-Nov-07 6:36
Mark Salsbery19-Nov-07 6:36 
GeneralRe: About Socket Buffer Pin
Mark Salsbery19-Nov-07 6:40
Mark Salsbery19-Nov-07 6:40 
GeneralRe: About Socket Buffer Pin
Matthew Faithfull19-Nov-07 8:14
Matthew Faithfull19-Nov-07 8:14 
GeneralRe: About Socket Buffer Pin
Mark Salsbery19-Nov-07 8:24
Mark Salsbery19-Nov-07 8:24 
Matthew Faithfull wrote:
It's not sending but recieving buffers that are the problem.


Ah, gotcha.  I've always made sure to cache incoming data if there's a chance it will come faster
than I can process it - not because of problems, just because "keeping the pipe clean" is most
efficient for the protocol.  If the protocol implementation is working correctly, a full receive buffer
should just shut down transmission until there's room to receive.  At the app layer, both ends need
to deal with that - usually by simply always checking the send()/recv() return values Smile | :)

Regardless, I think the OP has a design issue or just is using the APIs incorrectly.  It's hard to tell
with such little info, but usually one has to do something wrong to get a TCP connection to terminate
unexpectedly.  Hmm...is (s)he using TCP?  hehe

Cheers,
Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

QuestionTemplate without any content Pin
George_George18-Nov-07 23:57
George_George18-Nov-07 23:57 
AnswerRe: Template without any content Pin
Nelek19-Nov-07 0:25
protectorNelek19-Nov-07 0:25 
GeneralRe: Template without any content Pin
George_George19-Nov-07 1:04
George_George19-Nov-07 1:04 
GeneralRe: Template without any content Pin
Nelek19-Nov-07 1:10
protectorNelek19-Nov-07 1:10 
GeneralRe: Template without any content Pin
George_George19-Nov-07 1:20
George_George19-Nov-07 1:20 
GeneralRe: Template without any content Pin
Nelek19-Nov-07 1:47
protectorNelek19-Nov-07 1:47 
GeneralRe: Template without any content Pin
George_George19-Nov-07 4:30
George_George19-Nov-07 4:30 
AnswerRe: Template without any content Pin
Cedric Moonen19-Nov-07 1:13
Cedric Moonen19-Nov-07 1:13 
GeneralRe: Template without any content Pin
George_George19-Nov-07 4:31
George_George19-Nov-07 4:31 
Questionvariable declaration Pin
dadacncn18-Nov-07 23:42
dadacncn18-Nov-07 23:42 
AnswerRe: variable declaration Pin
manish.patel19-Nov-07 0:17
manish.patel19-Nov-07 0:17 
GeneralRe: variable declaration Pin
dadacncn19-Nov-07 0:34
dadacncn19-Nov-07 0:34 
GeneralRe: variable declaration Pin
manish.patel19-Nov-07 0:54
manish.patel19-Nov-07 0:54 
GeneralRe: variable declaration Pin
dadacncn19-Nov-07 1:24
dadacncn19-Nov-07 1:24 
QuestionProfiling C++ Applications: Available Tools? Pin
Tomerland18-Nov-07 23:31
Tomerland18-Nov-07 23:31 
AnswerRe: Profiling C++ Applications: Available Tools? Pin
Blake Miller21-Nov-07 4:19
Blake Miller21-Nov-07 4:19 
QuestionResizing the dialog box controls Pin
SnaKeBeD18-Nov-07 23:21
SnaKeBeD18-Nov-07 23:21 

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.