Click here to Skip to main content
15,890,670 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How do I call an instance method from an exported method in a MFC DLL? Pin
Matthew Faithfull19-Nov-07 0:32
Matthew Faithfull19-Nov-07 0:32 
GeneralRe: How do I call an instance method from an exported method in a MFC DLL? Pin
arnold_w19-Nov-07 1:02
arnold_w19-Nov-07 1:02 
QuestionRe: How do I call an instance method from an exported method in a MFC DLL? Pin
Matthew Faithfull19-Nov-07 1:07
Matthew Faithfull19-Nov-07 1:07 
AnswerRe: How do I call an instance method from an exported method in a MFC DLL? Pin
arnold_w19-Nov-07 2:09
arnold_w19-Nov-07 2:09 
QuestionAbout Socket Buffer Pin
manish.patel19-Nov-07 0:12
manish.patel19-Nov-07 0:12 
GeneralRe: About Socket Buffer Pin
Matthew Faithfull19-Nov-07 0:36
Matthew Faithfull19-Nov-07 0:36 
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 
My point is that you need to stop sending messages BEFORE the buffer gets full because once it's full it's too late, data is already corrupt and the connection drops. Ultimately the only reliable way I've found to do this is to make sure that your client reads messages faster than your server sends them so the buffer never fills up. The client should probably have a dedicated thread or threads servicing the socket connection and placing the messages recieved into a queue in memory that you control. If the queue gets too long the client will need to tell the server or find some other way to cope.
Your server will ultimately be talking to more than one client right? over a limited speed network, so there's no reason your client can't keep up with the traffic your server can send it as long as it can handle the full network bandwidth. On average it will only need to handle a tiny fraction of this as the bandwidth is shared.

Nothing is exactly what it seems but everything with seems can be unpicked.

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 
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 

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.