Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / examples / Service_Configurator / IPC-tests / server / Handle_L_Pipe.h
blob5e34a65347f566bdd1867693954845712363364d
1 // -*- C++ -*-
2 // Handle connections from local UNIX domain sockets that are sending
3 // end-points from a pipe!
5 #ifndef _HANDLE_L_PIPE_H
6 #define _HANDLE_L_PIPE_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/UNIX_Addr.h"
17 #include "ace/LSOCK_Acceptor.h"
18 #include "ace/svc_export.h"
20 #if !defined (ACE_LACKS_UNIX_DOMAIN_SOCKETS)
22 class ACE_Svc_Export Handle_L_Pipe : public ACE_Service_Object, public ACE_LSOCK_Acceptor
24 public:
25 Handle_L_Pipe ();
26 ~Handle_L_Pipe ();
27 virtual int init (int argc, ACE_TCHAR *argv[]);
28 virtual int info (ACE_TCHAR **, size_t) const;
29 virtual int fini ();
31 private:
32 int open (const ACE_UNIX_Addr &suap, int async = 0);
33 virtual ACE_HANDLE get_handle () const;
34 virtual int handle_input (ACE_HANDLE fd);
35 virtual int handle_close (ACE_HANDLE fd, ACE_Reactor_Mask);
37 char *upper_case (char s[], int n);
39 ACE_TCHAR rendezvous[MAXPATHLEN + 1];
40 static const ACE_TCHAR *DEFAULT_RENDEZVOUS;
43 extern ACE_Service_Object_Type lp;
45 #if defined (__ACE_INLINE__)
46 #define ACE_INLINE inline
47 #include "Handle_L_Pipe.inl"
48 #else
49 #define ACE_INLINE
50 #endif /* __ACE_INLINE__ */
52 #endif /* ACE_LACKS_UNIX_DOMAIN_SOCKETS */
53 #endif /* _HANDLE_L_PIPE_H */