background image
C H A P T E R 2 4
Built-in Communications Tools
24-10
Resource Arbitration Options
}
} ];
results := myATalkEP:Instantiate(myATalkEP, myOptions);
The AppleTalk tool options are summarized in Table 24-6. These options are
described in detail in "Options for the AppleTalk Tool" (page 21-71) in Newton
Programmer's Reference
.
Resource Arbitration Options
24
You can construct a communications tool to share its resources with other
communications tools. For example, you might need to use a hardware port that
other tools want to use. This section describes how you can implement resource
sharing in your communications tool.
The communications tool base provides a default implementation of resource
arbitration that uses two options to control the release of a tool's resources:
The resource-passive claim option (
kCMOPassiveClaim
) has a Boolean
value that specifies whether or not a communications tool is claiming its
resources passively or actively. If this value is
true
, the communications tool is
Table 24-6
Summary of AppleTalk options
Label
Value
Use When
Description
kCMARouteLabel
"rout"
When connecting
or listening
Sets an AppleTalk
NBP address.
kCMOAppleTalkBuffer
"bsiz"
When connecting,
listening, or
accepting
Sets the size of the
send, receive, and
attention buffers.
kCMOSerialBytesAvailable
"sbav"
After connecting
Read-only option
returns the number of
bytes available in the
receive buffer.
kCMSAppleTalkID
"atlk"
For instantiation
Specifies AppleTalk
tool type.
kCMOEndpointName
"endp"
For instantiation
Specifies AppleTalk
endpoint. Must be used
as above.
© 2007-2017, o7 studio » при воспроизведении материала сайта ссылка обязательна