Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / examples / Service_Configurator / IPC-tests / server / Handle_L_FIFO.h
blob2268c92f2b9545c76f733ece0bf7f57bd1c8632f
1 // -*- C++ -*-
2 /* Handle connections from local UNIX ACE_FIFO */
3 /* Read from a well known ACE_FIFO and write to stdout. */
5 #ifndef _HANDLE_L_FIFO_H
6 #define _HANDLE_L_FIFO_H
8 #include "ace/Service_Config.h"
9 #include "ace/Reactor.h"
11 #if !defined (ACE_LACKS_PRAGMA_ONCE)
12 # pragma once
13 #endif /* ACE_LACKS_PRAGMA_ONCE */
15 #include "ace/Service_Types.h"
16 #include "ace/FIFO_Recv_Msg.h"
17 #include "ace/Log_Msg.h"
18 #include "ace/svc_export.h"
20 class ACE_Svc_Export Handle_L_FIFO : public ACE_Service_Object, public ACE_FIFO_Recv_Msg
22 public:
23 Handle_L_FIFO ();
24 virtual int init (int argc, ACE_TCHAR *argv[]);
25 virtual int info (ACE_TCHAR **, size_t) const;
26 virtual int fini ();
28 private:
29 int open (const ACE_TCHAR *rendezvous_fifo);
30 virtual ACE_HANDLE get_handle () const;
31 virtual int handle_input (ACE_HANDLE fd);
32 virtual int handle_close (ACE_HANDLE fd, ACE_Reactor_Mask);
34 static const ACE_TCHAR *DEFAULT_RENDEZVOUS;
37 extern ACE_Service_Object_Type lf;
39 #if defined (__ACE_INLINE__)
40 #define ACE_INLINE inline
41 #include "Handle_L_FIFO.inl"
42 #else
43 #define ACE_INLINE
44 #endif /* __ACE_INLINE__ */
46 #endif /* _HANDLE_L_FIFO_H */