Click here to Skip to main content
15,887,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CFromView Pin
Andrew Brock26-Oct-11 1:30
Andrew Brock26-Oct-11 1:30 
GeneralRe: CFromView Pin
Richard MacCutchan26-Oct-11 2:08
mveRichard MacCutchan26-Oct-11 2:08 
GeneralRe: CFromView Pin
Andrew Brock26-Oct-11 2:17
Andrew Brock26-Oct-11 2:17 
GeneralRe: CFromView Pin
Richard MacCutchan26-Oct-11 2:43
mveRichard MacCutchan26-Oct-11 2:43 
AnswerRe: CFromView Pin
CPallini25-Oct-11 23:35
mveCPallini25-Oct-11 23:35 
QuestionQuestion on Windows IOCP Pin
SAMZCN25-Oct-11 17:04
SAMZCN25-Oct-11 17:04 
AnswerRe: Question on Windows IOCP Pin
Mark Salsbery25-Oct-11 17:34
Mark Salsbery25-Oct-11 17:34 
GeneralRe: Question on Windows IOCP Pin
SAMZCN25-Oct-11 23:54
SAMZCN25-Oct-11 23:54 
Hello Mark,

Much appreciated for your input. I think it is very helpful to me.
Mark Salsbery wrote:
SAMZCN wrote:
Is it possbile to require more than one send request for each buffer?


 

Yes it's possible, so you need to check if the entire buffer of data was sent for each call, same as always with sockets.

 



Note: If you make multiple asynchronous WSASend calls using an I/O completion port then make sure all calls are made on the same thread.

 



For TCP/IP, I personally much prefer only one outstanding read and/or one outstanding write per socket given the above information Smile | :)

At this point, it is the biggest puzzling thing to me. I read many articles on this issue about IOCP. But don't find any conclusion to make me convienced. By your saying, it seems really I need to check the whether the entire buffer in one request was sent out completely. If not, I need to post another send request for the rest data.

Yes. Really I want to make multiple asynchronous WSASend calls using an I/O completion port to get performance improvement. But I can't make sure the calls are received by same thread. It is my problem. I do many trials on this. It seems meaningless.

I agree that one outstanding IO operation per socket in a given time is a good way to get stable running. Thanks.Thumbs Up | :thumbsup:
GeneralRe: Question on Windows IOCP Pin
Mark Salsbery26-Oct-11 5:08
Mark Salsbery26-Oct-11 5:08 
GeneralRe: Question on Windows IOCP Pin
SAMZCN26-Oct-11 15:42
SAMZCN26-Oct-11 15:42 
QuestionIMPLEMENT_SERIAL - VERSIONABLE_SCHEMA problem Pin
_Flaviu25-Oct-11 7:31
_Flaviu25-Oct-11 7:31 
AnswerRe: IMPLEMENT_SERIAL - VERSIONABLE_SCHEMA problem Pin
Erudite_Eric25-Oct-11 8:08
Erudite_Eric25-Oct-11 8:08 
QuestionUsing Timer with non-dialog class Pin
aangerma24-Oct-11 22:13
aangerma24-Oct-11 22:13 
AnswerRe: Using Timer with non-dialog class Pin
_AnsHUMAN_ 24-Oct-11 22:30
_AnsHUMAN_ 24-Oct-11 22:30 
GeneralRe: Using Timer with non-dialog class Pin
aangerma24-Oct-11 22:43
aangerma24-Oct-11 22:43 
GeneralRe: Using Timer with non-dialog class Pin
Albert Holguin25-Oct-11 5:02
professionalAlbert Holguin25-Oct-11 5:02 
GeneralRe: Using Timer with non-dialog class Pin
Andrew Brock25-Oct-11 5:50
Andrew Brock25-Oct-11 5:50 
GeneralRe: Using Timer with non-dialog class Pin
Albert Holguin25-Oct-11 8:57
professionalAlbert Holguin25-Oct-11 8:57 
AnswerRe: Using Timer with non-dialog class Pin
Erudite_Eric24-Oct-11 22:35
Erudite_Eric24-Oct-11 22:35 
GeneralRe: Using Timer with non-dialog class Pin
aangerma24-Oct-11 23:01
aangerma24-Oct-11 23:01 
GeneralRe: Using Timer with non-dialog class Pin
Richard MacCutchan25-Oct-11 0:41
mveRichard MacCutchan25-Oct-11 0:41 
GeneralRe: Using Timer with non-dialog class Pin
Erudite_Eric25-Oct-11 1:05
Erudite_Eric25-Oct-11 1:05 
AnswerRe: Using Timer with non-dialog class Pin
jeron125-Oct-11 4:04
jeron125-Oct-11 4:04 
AnswerRe: Using Timer with non-dialog class Pin
PJ Arends25-Oct-11 6:22
professionalPJ Arends25-Oct-11 6:22 
GeneralRe: Using Timer with non-dialog class Pin
Erudite_Eric25-Oct-11 6:59
Erudite_Eric25-Oct-11 6:59 

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.