Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / examples / Service_Configurator / IPC-tests / server / Handle_L_Stream.h
blob54e34be7be93342089849f4f583a0e774d309c4f
1 // -*- C++ -*-
2 // Handle connections from local UNIX domain sockets.
4 #ifndef _HANDLE_L_STREAM_H
5 #define _HANDLE_L_STREAM_H
7 #include "ace/Service_Config.h"
8 #include "ace/Reactor.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/UNIX_Addr.h"
16 #include "ace/LSOCK_Acceptor.h"
17 #include "ace/svc_export.h"
19 #if !defined (ACE_LACKS_UNIX_DOMAIN_SOCKETS)
21 class ACE_Svc_Export Handle_L_Stream : public ACE_Service_Object, public ACE_LSOCK_Acceptor
23 public:
24 Handle_L_Stream ();
25 ~Handle_L_Stream ();
26 virtual int init (int argc, ACE_TCHAR *argv[]);
27 virtual int info (ACE_TCHAR **, size_t) const;
28 virtual int fini ();
30 private:
31 int open (const ACE_UNIX_Addr &suas, int async = 0);
32 virtual ACE_HANDLE get_handle () const;
33 virtual int handle_input (ACE_HANDLE fd);
34 virtual int handle_close (ACE_HANDLE fd, ACE_Reactor_Mask);
36 ACE_TCHAR rendezvous[MAXPATHLEN + 1];
37 static const ACE_TCHAR *DEFAULT_RENDEZVOUS;
38 static char *login_name;
39 static char login[ACE_MAX_USERID];
42 extern ACE_Service_Object_Type ls;
44 #if defined (__ACE_INLINE__)
45 #define ACE_INLINE inline
46 #include "Handle_L_Stream.inl"
47 #else
48 #define ACE_INLINE
49 #endif /* __ACE_INLINE__ */
50 #endif /* ACE_LACKS_UNIX_DOMAIN_SOCKETS */
51 #endif /* _HANDLE_L_STREAM_H */