Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / examples / Service_Configurator / IPC-tests / server / Handle_L_Dgram.h
blob323b4b5e1b786f4c202879b20f93b7833faf4ce1
1 // -*- C++ -*-
2 // Handles UNIX datagram messages from local host.
4 #ifndef _HANDLE_L_DGRAM_H
5 #define _HANDLE_L_DGRAM_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/LSOCK_Dgram.h"
16 #include "ace/UNIX_Addr.h"
17 #include "ace/svc_export.h"
19 #if !defined (ACE_LACKS_UNIX_DOMAIN_SOCKETS)
21 class ACE_Svc_Export Handle_L_Dgram : public ACE_Service_Object, public ACE_LSOCK_Dgram
23 public:
24 Handle_L_Dgram ();
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_UNIX_Addr &suad, int async = 0);
31 virtual int get_handle () const;
32 virtual int handle_input (int fd);
33 virtual int handle_close (int fd, ACE_Reactor_Mask);
35 ACE_TCHAR rendezvous[MAXPATHLEN + 1];
36 static const ACE_TCHAR *DEFAULT_RENDEZVOUS;
39 extern ACE_Service_Object_Type ld;
41 #if defined (__ACE_INLINE__)
42 #define ACE_INLINE inline
43 #include "Handle_L_Dgram.inl"
44 #else
45 #define ACE_INLINE
46 #endif /* __ACE_INLINE__ */
48 #endif /* ACE_LACKS_UNIX_DOMAIN_SOCKETS */
49 #endif /* _HANDLE_L_DGRAM_H */