home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / sinkev.idl < prev    next >
Encoding:
Text File  |  1996-02-21  |  1.8 KB  |  60 lines

  1. //
  2. //   COMPONENT_NAME: somu
  3. //
  4. //   ORIGINS: 27
  5. //
  6. //
  7. //   10H9767, 10H9769  (C) COPYRIGHT International Business Machines Corp. 1992,1994
  8. //   All Rights Reserved
  9. //   Licensed Materials - Property of IBM
  10. //   US Government Users Restricted Rights - Use, duplication or
  11. //   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  12. //
  13.  
  14. #ifndef sinkev_idl
  15. #define sinkev_idl
  16.  
  17. #include <event.idl>
  18.  
  19. interface SOMESinkEvent : SOMEEvent
  20.  
  21. // SOMESinkEvent is the class for generic sink events within the Event Manager.
  22. // This class should be queried for events of the following type(s):
  23. //      EMSinkEvent (for files, pipes, and sockets)
  24. //      EMMsgQEvent (for AIX message queues)
  25. //
  26. // On AIX, an instance of this class is created, initialized and passed to the
  27. // callback routine  for events (input/output/exception) associated with files,
  28. // sockets, pipes and Message Queues. On OS/2, the same is done for sockets only.
  29. {
  30.   long somevGetEventSink();
  31.  
  32.   // Returns the sink, or source of file i/o, of the generic sink event.
  33.   // For message queues it is the queue id, for files it is the file descriptor,
  34.   // for sockets it is the socket id and for pipes it is the pipe descriptor.
  35.  
  36.   void somevSetEventSink(in long sink);
  37.  
  38.   // Sets the sink, or source of file i/o, of the generic sink event.
  39.   // For message queues it is the queue id, for files it is the file descriptor,
  40.   // for sockets it is the socket id and for pipes it is the pipe descriptor.
  41.  
  42. #ifdef __SOMIDL__
  43.   implementation {
  44.  
  45.     releaseorder: somevGetEventSink,somevSetEventSink;
  46.  
  47.     majorversion = 2;
  48.     minorversion = 1;
  49.     filestem = sinkev;
  50.     callstyle = idl;
  51.  
  52.  
  53.     somInit: override;
  54.  
  55.   };
  56. #endif /* __SOMIDL__ */
  57. };
  58.  
  59. #endif  /* sinkev_idl */
  60.