2013年8月14日星期三

IOCP disorder problems .

Recent study IOCP. Examples http://blog.csdn.net/piggyxp/article/details/6922277 reference PiggyXP
his turned into C + + code of Delphi .
but in the service end point problem occurs when sending data . ( To test data integrity ) client makes a request , the service sends a file to the client , the client receives the file size is correct, but the file is not correct , send compressed package open.
I use when sending wsaSend. sending files about 100K , 8192 bytes each delivery , return and then continue to drop in PostQueuedCompletionStatus 8192 bytes until the transmission is completed . Uses a short connection , each connection is disconnected after the completion of an interaction .
------ Solution ---------------------------------------- ----

- ----- For reference only ---------------------------------------
In addition , GetQueuedCompletionStatus anti-back success, and treatment length equal to the length and the transmission is not completed successfully received on behalf of the other end of it ?
------ For reference only -------------------------------------- -
who access points . Who will pick points.

没有评论:

发表评论