Title Banner

Previous Book Contents Book Index Next

Newton Developer Technical Information: Newton Programmer's Guide: 2.1 OS Addendum /
Chapter 9 - IrDA Communication Tool / IrDA Tool Option Reference


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:

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 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.

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 and Listen operations.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
26 APR 1997



Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help