Iomgr copy problem (possible bug)

I am getting data corruption in data written to my QNX4 USB device. The
write function (called by server()) in my driver reports the number of bytes
I expect (23114) in a message (write from application layer). However, data
dumps in the application and in the driver show that only 1016 bytes are
being copied properly.
Thanks,
-Art

Arthur C Peet <arthur.peet@toltecint.com> wrote:

I am getting data corruption in data written to my QNX4 USB device. The
write function (called by server()) in my driver reports the number of bytes
I expect (23114) in a message (write from application layer). However, data
dumps in the application and in the driver show that only 1016 bytes are
being copied properly.

This is correct behavior. The iomgr lib only has a 1024 byte receive buffer.
If your app is writing more than this amount it will need to read the rest
of the data. The printer class driver shows how to obtain the remaining
data.