Question: I'm using **Drupal 6.20**, **Views 2** and [**Views attach**](http://drupal.org/project/views_attach) module to append few view displays to a full node view. Is there some way to reorder the attached views? The views should still be grouped together (ie. I do not want to insert any other CCK field between them), but I want to display them in different order than that they automatically appear in.

Answer: 
You could use OS-specific calls to get file descriptors, if you want to. For example, the Unix open function would do just what you want.

Alternatively, you could make your code to read and write data part of a polymorphic class hierarchy, which would let you use file descriptors where appropriate and the streams library (for example) for file I/O. In fact, one idea might be to writw custom stream classes to wrap up the TCP connections, then use ostream and istream as wrappers around the specifics of the connection.
If it isn't a file descriptor, then there is no point in passing it to select(). If there is a file descriptor somewhere underneath, then you either need an API to expose it, or you have a low-level API to add file descriptors to the select set and make the class responsible for registering any file descriptors it uses. Note that you are well into asynchronous event handling and callback territory then.