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

C / C++ / MFC

 
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 
GeneralRe: Question on Windows IOCP Pin
Mark Salsbery26-Oct-11 5:08
Mark Salsbery26-Oct-11 5:08 
SAMZCN wrote:
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.


With TCP/IP protocol, YES - always with sockets! (I say with TCP/IP since for example, UDP datagrams always go all at once).


SAMZCN wrote:
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.


Won't really be any performance increase.. The network stack (including the socket and the network adapter(s)) is a huge bottleneck and generally magnitudes slower than your running code.
*edit* Plus you really can't since you need the result of the previous sends. Any thread synchronization you could maybe add to "solve" this would probably just slow down the IOCP since you'd have IOCP completion handler threads waiting on synch objects instead of waiting for completion packets so overall performance could suffer when many sockets are involved (which is where IOCPs really shine).
Mark Salsbery
Java | [Coffee]


modified 26-Oct-11 14:26pm.

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 
GeneralRe: Using Timer with non-dialog class Pin
Richard MacCutchan25-Oct-11 9:55
mveRichard MacCutchan25-Oct-11 9:55 

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.