Mailing Lists: Apple Mailing Lists

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

OTSnd buffer size



What will be a "default" or close to "default" buffer size when I use the OTSnd call?

For example, if I have a large file (over 5 MB) and use connection-oriented base endingpoints, I tried 16K, 32K and 64K buffer size. It seems that I got more -3161 (kOTFlowErr) often on 16K other than 64K buffer size on a 10 Mbps network and almost no error on 100 Mbps network. Sometime, the -3161 took a while (more than few seconds) to clear when I have the T_GODATA callback event.

This is running a classic app on OS 10.2, OS 10.1. and OS 9.2.2.

I am using:

result = OTSnd(gConnectEndPoint, bufHandle+offset, bufferSize, T_MORE );

Thanks for any suggestion and help...

Michael Wu
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.



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.