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


Attribute Name Option

The option *kCMOIrDAConnectAttrName is intended for communications tools (built upon the IrDA tool) that are implementing higher layers of the IrDA stack (IrComm, for example) and want to register their LSAP ids with a different attribute name. This option defines the IAS attribute string for the LSAP selector that is registered or looked up by the communications tool. The default value for the IrDA tool (which is implemented at the IrLMP level) is "IrDA:IrLMP:LsapSel". For example, a communications tool that implements TinyTP would supply a value of "IrDA:TinyTP:LsapSel", per the TinyTP spec.

local option := {

label: kCMOIrDAConnectAttrName, // IrDA attribute name type: 'option, opCode: opSetRequired, data: { arglist: [ 19, // length of data; strlen("IrDA:TinyTP:LsapSel") "IrDA:TinyTP:LsapSel", // data string ], typelist: [ 'struct, 'uLong, // fNameLength; default is 0 ['array, 'char, 0], // fName ], }, };

The fields fNameLength and fName are used together to describe the LSAP id attribute name registered for Listen/Connect or looked up for Connect 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