Apple Newton Utilities Guide de l'utilisateur Page 855

  • 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 854
CHAPTER 23
Endpoint Interface
Summary of the Endpoint Interface 23-27
Callback Spec Frame 23
myCallbackSpec := {
async: Boolean, // asynch request?
reqTimeout: integer, // time-out period, or 0
CompletionScript: // called when request is done
func(endpoint, options, result)...,
}
Output Spec Frame 23
myOutputSpec := {
async: Boolean, // asynch request?
reqTimeout: integer, // time-out period, in milliseconds
sendFlags: integer, // flag constant(s)
form: symbol, // data form identifier
target: { // used for 'binary data forms
offset: integer, // offset to begin sending from
length: integer // number of bytes to send
},
CompletionScript: // called when request is done
func(endpoint, options, result)...,
}
Input Spec Frame 23
myInputSpec := {
form: symbol, // data form identifier
target: { // used with 'template and 'binary data forms
typelist: [], // array of data types
arglist: [], // array of data items
data: object, // binary object to receive data
offset: integer // offset at which to write data
},
termination: { // defines termination conditions
byteCount: integer, // number of bytes to receive
endSequence: object, // char,string,number,or byte array
useEOP: Boolean // terminate on EOP indicator?
},
discardAfter: integer, // buffer size
rcvFlags: integer, // receive flag constant(s)
reqTimeout: integer, // time-out period, in milliseconds
Vue de la page 854
1 2 ... 850 851 852 853 854 855 856 857 858 859 860 ... 941 942

Commentaires sur ces manuels

Pas de commentaire