TIBCO Adapter SDK C++ Reference
MIODescriptorSource
Class Hierarchy | C++ Classes and Methods | Members | Methods
The MIODescriptorSource class allows applications to generate event objects associated with I/O events arriving through descriptors, typically file descriptors, socket descriptors, or pipe descriptors. Currently, three I/O event types are supported: read, write, and exception.

An MIODescriptorSource listens for changes in an IO descriptor, such as a file, socket, or pipe. If an event occurs in the descriptor, the descriptor source generates the appropriate MIOEvent and notifies its event listeners.

Remarks
Applications have to close the file descriptor associated with the MIODescriptorSource explicitly. The destructor does not delete it.

Under Microsoft Windows, you can only use an MIODescriptorSource with sockets.

This class is useful, for example, if an application wants to process all data arriving on a socket.

Inherited Methods
MEventSource::addListener() - Adds an event listener to this event source.

MEventSource::removeListener() - Removes an event listener from this event source.

Declaration
class MIODescriptorSource : public MEventSource;
Class Hierarchy
MObject
    MComponent
        MEventSource
            MIODescriptorSource
File
MIODescriptorSource.h
Links
Copyright (c) 2010 TIBCO Software Inc. All rights reserved.