home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / som / include / sinkev.idl < prev    next >
Text File  |  1999-02-22  |  2KB  |  69 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. //#  @(#) 2.7 src/somem/sinkev.idl, somu, som2.1 9/1/94 17:45:37 [7/30/96 14:46:13]
  14.  
  15.  
  16.  
  17. #ifndef sinkev_idl
  18. #define sinkev_idl
  19.  
  20. #include <event.idl>
  21.  
  22. interface SOMESinkEvent : SOMEEvent
  23.  
  24. // SOMESinkEvent is the class for generic sink events within the Event Manager.
  25. // This class should be queried for events of the following type(s):
  26. //      EMSinkEvent (for files, pipes, and sockets)
  27. //      EMMsgQEvent (for AIX message queues)
  28. //
  29. // On AIX, an instance of this class is created, initialized and passed to the
  30. // callback routine  for events (input/output/exception) associated with files,
  31. // sockets, pipes and Message Queues. On OS/2, the same is done for sockets only.
  32. {
  33.   long somevGetEventSink();
  34.  
  35.   // Returns the sink, or source of file i/o, of the generic sink event.
  36.   // For message queues it is the queue id, for files it is the file descriptor,
  37.   // for sockets it is the socket id and for pipes it is the pipe descriptor.
  38.  
  39.   void somevSetEventSink(in long sink);
  40.  
  41.   // Sets the sink, or source of file i/o, of the generic sink event.
  42.   // For message queues it is the queue id, for files it is the file descriptor,
  43.   // for sockets it is the socket id and for pipes it is the pipe descriptor.
  44.  
  45.  
  46.  
  47. #ifdef __SOMIDL__
  48.   implementation {
  49.  
  50.     releaseorder: somevGetEventSink,somevSetEventSink;
  51.  
  52.     //# Class Modifiers
  53.     majorversion = 2;
  54.     minorversion = 1;
  55.     filestem = sinkev;
  56.     callstyle = idl;
  57.  
  58.  
  59.     //# Method Modifiers
  60.     somInit: override;
  61.  
  62.     //# Data Modifiers
  63.  
  64.   };
  65. #endif /* __SOMIDL__ */
  66. };
  67.  
  68. #endif  /* sinkev_idl */
  69.