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


Connect User Data Option

This rarely used option that may be needed for comm tools that wish to build upon the base IrDA comm tool. This is the *kCMOIrDAConnectUserData option, which is used during connect time to send/receive "out of band" data. See the IrDA documentation to get an idea of how this would be used (specifically IrTinyTP and IrComm).

local option := {

label: kCMOIrDAConnectUserData, // IrDA connect user data type: 'option, opCode: opSetRequired, data: { arglist: [ 3, // length of data; strlen("foo") "foo", // data string ], typelist: [ 'struct, 'uLong, // fDataLength; default is 0 ['array, 'char, 0], // fData ], }, };

The fields fDataLength and fData are used together to describe data to be sent/received during connect/listen.

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