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)
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
25 virtual int init (int argc
, ACE_TCHAR
*argv
[]);
26 virtual int info (ACE_TCHAR
**, size_t) const;
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"
46 #endif /* __ACE_INLINE__ */
48 #endif /* ACE_LACKS_UNIX_DOMAIN_SOCKETS */
49 #endif /* _HANDLE_L_CODGRAM_H */