Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Sending data to USBPrinter with Timeout
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending data to USBPrinter with Timeout



On Apr 1, 2004, at 10:49 AM, Stefan Heinsen wrote:

Im using a rather large buffer of 100k with WritePipeTO. Would
splitting the buffer to smaller packets help? how large is the
buffer size? ist it fixed or does it depend on the device?

Ah. My writes (at least the ones I want to retry) are small enough to fit in a single USB packet. If WritePipeTO does not tell you how much data was successfully written before the error occurred, you might try breaking your writes up into packet size chunks (64 bytes?). Maybe someone at Apple can comment on that.


Dave
---
There's an old proverb that says just about whatever you want it to.
_______________________________________________
usb mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/usb
Do not post admin requests to the list. They will be ignored.


References: 
 >Sending data to USBPrinter with Timeout (From: Stefan Heinsen <email@hidden>)
 >Re: Sending data to USBPrinter with Timeout (From: Dave Camp <email@hidden>)
 >Re: Sending data to USBPrinter with Timeout (From: Stefan Heinsen <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.