beautypg.com

Endpoint interface – Apple Newton Programmer’s Newton 2.0 (for Newton 2.0) User Manual

Page 28

background image

xxviii

Chapter 23

Endpoint Interface

23-1

About the Endpoint Interface

23-1

Asynchronous Operation

23-2

Synchronous Operation

23-3

Input

23-3

Data Forms

23-4

Template Data Form

23-5

Endpoint Options

23-7

Compatibility

23-7

Using the Endpoint Interface

23-8

Setting Endpoint Options

23-8

Initialization and Termination

23-10

Establishing a Connection

23-11

Sending Data

23-11

Receiving Data Using Input Specs

23-12

Specifying the Data Form and Target

23-13

Specifying Data Termination Conditions

23-14

Specifying Flags for Receiving

23-15

Specifying an Input Time-Out

23-16

Specifying Data Filter Options

23-16

Specifying Receive Options

23-17

Handling Normal Termination of Input

23-17

Periodically Sampling Incoming Data

23-18

Handling Unexpected Completion

23-18

Special Considerations

23-18

Receiving Data Using Alternative Methods

23-19

Streaming Data In and Out

23-20

Working With Binary Data

23-20

Canceling Operations

23-21

Asynchronous Cancellation

23-21

Synchronous Cancellation

23-22

Other Operations

23-22

Error Handling

23-23

Power-Off Handling

23-23

Linking the Endpoint With an Application

23-24

Summary of the Endpoint Interface

23-25

Constants and Symbols

23-25

Data Structures

23-26

Protos

23-28

Functions and Methods

23-30