Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / examples / Service_Configurator / IPC-tests / server / Handle_L_CODgram.h
blob6ceb220198534a4eb0cf4e4dfbd9417bf5ec6069
1 /* -*- C++ -*- */
2 // Handles UNIX datagram messages from local host.
4 #ifndef _HANDLE_L_CODGRAM_H
5 #define _HANDLE_L_CODGRAM_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_CODgram.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_CODgram : public ACE_Service_Object, public ACE_LSOCK_CODgram
23 public:
24 Handle_L_CODgram ();
25 virtual int init (int argc, ACE_TCHAR *argv[]);
26 virtual int info (ACE_TCHAR **, size_t) const;
27 virtual int fini ();
29 public:
30 int open (const ACE_UNIX_Addr &suad, int async = 0);
31 virtual ACE_HANDLE get_handle () const;
32 virtual int handle_input (ACE_HANDLE);
33 virtual int handle_close (ACE_HANDLE, ACE_Reactor_Mask);
35 ACE_TCHAR rendezvous[MAXPATHLEN + 1];
36 static const ACE_TCHAR *DEFAULT_RENDEZVOUS;
39 extern ACE_Service_Object_Type lc;
41 #if defined (__ACE_INLINE__)
42 #define ACE_INLINE inline
43 #include "Handle_L_CODgram.inl"
44 #else
45 #define ACE_INLINE
46 #endif /* __ACE_INLINE__ */
48 #endif /* ACE_LACKS_UNIX_DOMAIN_SOCKETS */
49 #endif /* _HANDLE_L_CODGRAM_H */