next up previous
Next: Creating a Channel
Up: Saving and Restoring Objects (Channels)
Previous: Saving and Restoring Objects (Channels)

The Channel Model

The best way to start thinking about a Channel is like a Fortran I/O unit (also represented by an integer, as it happens) and to think of the process of creating a Channel as the combined process of allocating a unit number and attaching it to a file by opening the file on that unit. Subsequently, you can read and write Objects via the Channel.

This analogy is not quite perfect, however, because a Channel has, in principle, two ``files'' attached to it. One is used when reading, and the other when writing. These are termed the Channel's source and sink respectively. In practice, the source and sink may both be the same, in which case the analogy with the Fortran I/O unit is correct, but this need not always be so. It is not necessarily so with the basic Channel, as we will now see ([*]).



next up previous
Next: Creating a Channel
Up: Saving and Restoring Objects (Channels)
Previous: Saving and Restoring Objects (Channels)

AST A Library for Handling World Coordinate Systems in Astronomy
Starlink User Note 210
R.F. Warren-Smith & D.S. Berry
30th April 2003
E-mail:ussc@star.rl.ac.uk

Copyright (C) 2003 Central Laboratory of the Research Councils