Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / examples / Service_Configurator / IPC-tests / server / Handle_L_SPIPE.h
blob5a247db7e0c3eb650098b8a3959b92b0967ae447
1 /* -*- C++ -*- */
2 /* Handle connections from local UNIX ACE_SPIPE */
3 /* Read from a well known ACE_SPIPE and write to stdout. */
5 #ifndef _HANDLE_L_SPIPE_H
6 #define _HANDLE_L_SPIPE_H
8 #include "ace/Service_Config.h"
10 #if !defined (ACE_LACKS_PRAGMA_ONCE)
11 # pragma once
12 #endif /* ACE_LACKS_PRAGMA_ONCE */
14 #include "ace/Service_Types.h"
15 #include "ace/SPIPE_Acceptor.h"
16 #include "ace/Log_Msg.h"
17 #include "ace/svc_export.h"
19 #if defined (ACE_HAS_STREAM_PIPES)
21 class ACE_Svc_Export Handle_L_SPIPE : public ACE_Service_Object, public ACE_SPIPE_Acceptor
23 public:
24 Handle_L_SPIPE ();
25 virtual int init (int argc, ACE_TCHAR *argv[]);
26 virtual int info (ACE_TCHAR **, size_t) const;
27 virtual int fini ();
29 private:
30 int open (const ACE_SPIPE_Addr &rendezvous_spipe);
31 virtual int get_handle () const;
32 virtual int handle_input (int fd);
33 virtual int handle_close (int fd, ACE_Reactor_Mask);
35 static const ACE_TCHAR *DEFAULT_RENDEZVOUS;
38 extern ACE_Service_Object_Type lsp;
40 #if defined (__ACE_INLINE__)
41 #define ACE_INLINE inline
42 #include "Handle_L_SPIPE.inl"
43 #else
44 #define ACE_INLINE
45 #endif /* __ACE_INLINE__ */
47 #endif /* _HANDLE_L_SPIPE_H */
50 #endif /* ACE_HAS_STREAM_PIPES */