Apple Newton Utilities Guide de l'utilisateur Page 869

  • 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 868
CHAPTER 24
Built-in Communications Tools
Resource Arbitration Options 24-11
claiming its resources passively and will allow another tool to claim it. If this
value is
nil, the communications tool is claiming its resources actively and will
not allow another tool to claim it.
The resource-passive state option (kCMOPassiveState) has a Boolean value
that species whether or not the current state of the communications tool
supports releasing resources. If this value is set, and
kCMOPassiveClaim is
true, your communications tool is willing to relinquish use of its passively
claimed resources. If this value is
nil, the communications tool is not willing to
relinquish use of its passively claimed resources.
Table 24-7 shows the resource arbitration options. These options are described in
detail in “Options for Resource Arbitration” (page 21-82) in Newton Programmers
Reference.
The following example demonstrates how to instruct a communications tool to
claim its resources passively. You must do this before binding the tool. By default
all tools are claimed actively.
{
label: kCMOPassiveClaim,
type: 'option,
opCode: opSetRequired,
data: {
arglist: [
true, // passively claim modem
],
typelist: [
kStruct,
kBoolean,
]
}
}
Table 24-7 Resource arbitration options
Label Value Use when Description
kCMOPassiveClaim
"cpcm" Before bind Species whether your tool claims
resources actively or passively
kCMOPassiveState
"cpst" Typically
on listen
Species whether your tool releases
resources
Vue de la page 868
1 2 ... 864 865 866 867 868 869 870 871 872 873 874 ... 941 942

Commentaires sur ces manuels

Pas de commentaire