Apple Newton Utilities Guide de l'utilisateur Page 857

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 942
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 856
CHAPTER 23
Endpoint Interface
Summary of the Endpoint Interface 23-29
Input: // returns data from input buffer and clears it
func() ...,
Partial: // returns data from input buffer
func() ...,
FlushInput: // flushes whole input buffer
func() ...,
FlushPartial: // flushes input buffer previously read
func() ...,
Cancel: // cancels operations
func(callbackSpec) ...,
Option: // sets & gets options
func(options, callbackSpec) ...,
ExceptionHandler: // called on exceptions
func(error) ...,
EventHandler: // called on unhandled events
func(event) ...,
State: // returns endpoint state
func() ...,
...
}
protoStreamingEndpoint 23
myStreamEndpoint := {
_proto: protoStreamingEndpoint, // proto endpoint
StreamIn: // receives stream data
func({ form: 'frame, // required
reqTimeout: integer, // time-out in ms.
rcvFlags: integer, // receive flag constant(s)
target: {
store: store}, // store for VBOs
ProgressScript: // progress callback
func(bytes, totalBytes)...
}) ...,
StreamOut: // sends stream data
func(data,
{form: 'frame, // required
reqTimeout: integer, // time-out in ms.
sendFlags: integer, // send flag constant(s)
ProgressScript: // progress callback
func(bytes, totalBytes)...
}) ...,
...
}
Vue de la page 856
1 2 ... 852 853 854 855 856 857 858 859 860 861 862 ... 941 942

Commentaires sur ces manuels

Pas de commentaire