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