Sockets & IO Completion ports problem

Sockets & IO Completion ports problem

Post by TmFkYX » Sat, 27 Aug 2005 19:07:07


Hi,

I am receiving data through sockets using ReadFile in combination with IO
Completion ports, I am receiving blocks of size of about 11Kb, of some
strange reason the completion routine for this read operation completes when
only part of the data was received ( e.g. 5Kb ) is this a normal behavior?
Shouldn the completion routine be called only when all of the data was
successfully received ?

Any help, pointer, or advise would be appreciated.

Naddav
http://www.yqcomputer.com/
 
 
 

Sockets & IO Completion ports problem

Post by qfel » Sat, 27 Aug 2005 20:33:01

The completion routine is called when operation completes, and operation
completes when any data becomes avalible. Even blocking recv could return
with less then requested bytes read.