beautypg.com

Data structures 23 – Apple Newton Programmer’s Newton 2.0 (for Newton 2.0) User Manual

Page 854

background image

C H A P T E R 2 3

Endpoint Interface

23-26

Summary of the Endpoint Interface

Endpoint State Constants

23

Other Endpoint Constants

23

Data Structures

23

Option Frame

23

myOption := {

type:

symbol

, // option type

label:

string

, // 4-char option identifier

opCode:

integer

, // an opCode constant

form: 'template, // default form for options

result: nil, // set by the system on return

data: {

arglist: [], // array of data items

typelist:[], // array of data types

}

}

kUninit

0

kUnbnd

1

kIdle

2

kOutCon

3

kInCon

4

kDataXfer

5

kOutRel

6

kInRel

7

kInFlux

8

kOutLstn

9

kNoTimeout

0

kEOP

0

kMore

1

kPacket

2