ctb -- Python library reference
Next: macconsole
Prev: macpath
Up: Macintosh Specific Services
Top: Top
14.3. Built-in Module ctb
This module provides a partial interface to the Macintosh
Communications Toolbox. Currently, only Connection Manager tools are
supported. It may not be available in all Mac Python versions.
- error -- data of module ctb
-
The exception raised on errors.
- cmData -- data of module ctb
-
- cmCntl -- data of module ctb
-
- cmAttn -- data of module ctb
-
Flags for the channel argument of the Read and Write
methods.
- cmFlagsEOM -- data of module ctb
-
End-of-message flag for Read and Write.
- choose* -- data of module ctb
-
Values returned by Choose.
- cmStatus* -- data of module ctb
-
Bits in the status as returned by Status.
- available () -- function of module ctb
-
Return 1 if the communication toolbox is available, zero otherwise.
- CMNew (name, sizes) -- function of module ctb
-
Create a connection object using the connection tool named
name. sizes is a 6-tuple given buffer sizes for data in,
data out, control in, control out, attention in and attention out.
Alternatively, passing
None
will result in default buffer sizes.
Menu
- connection object
Next: macconsole
Prev: macpath
Up: Macintosh Specific Services
Top: Top