Receive Buffers Option
The receive buffers option, *kCMOIrDAReceiveBuffers, sets the number and size of buffers used for receiving data.The following example shows the use of this option:
The first field specifies the size, in bytes, of the receive buffers used by the IrDA tool. The default is 512 bytes. Valid values are 64, 128, 256, 512, 1024, or 2048.local option := {
label: kCMOIrDAReceiveBuffers
, // IrDA recv buffers info type: 'option, opCode: opSetRequired, data: { arglist: [ 2048, // buffer is 2048 bytes 1, // allocate one buffer ], typelist: [ 'struct, 'uLong, // size of each receive buffer, default is 512 'uLong, // number of receive buffers used, default is 1 ], }, };
The second field specifies the number of receive buffers used by the IrDA tool (window size in IrDA terminology). The default is 1. Valid values range from 1 to 7.
Note that you may request a large buffer (and/or a large number of buffers), but the actual buffer size and number of buffers may be less if the negotiated speed is less than the maximum that you request.
This option applies to both
Connect
andListen
operations.
![]()
![]()
![]()
![]()
© Apple Computer, Inc.
26 APR 1997Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help