Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ReadPipeAsync revisited.




Hi guys,

So, I have finally gotten round to implementing a fix for a 0xe00002e8 in a call to ReadPipeAsync (mentioned in earlier emails). I have a question though.  The code used is as follows:

result = (*interface)->ReadPipeAsync(interface, 1, asynchRequest->rawDataBuffer,
sizeOfRequest, returnHandler, asynchRequest);

if(result != kIOReturnSuccess){
//Handle error.
}

The error is caught in the if block. Given that this is an async request, am I correct in assuming that the return from this function cannot know about errors generated during the actual obtaining of the data? So, if I re-send the request, can I trust that the device is still waiting to receive a read request? If this were a synchronous call, I would naturally assume that some error had occurred that would more than likely mean that I would loose the data, but in this case, it is not clear to me as the call above returns immediately.

Thanks for your help as always,

Robert.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.