2 // Handle connections from local UNIX domain sockets that are sending
3 // end-points from a pipe!
5 #ifndef _HANDLE_L_PIPE_H
6 #define _HANDLE_L_PIPE_H
8 #include "ace/Service_Config.h"
9 #include "ace/Reactor.h"
11 #if !defined (ACE_LACKS_PRAGMA_ONCE)
13 #endif /* ACE_LACKS_PRAGMA_ONCE */
15 #include "ace/Service_Types.h"
16 #include "ace/UNIX_Addr.h"
17 #include "ace/LSOCK_Acceptor.h"
18 #include "ace/svc_export.h"
20 #if !defined (ACE_LACKS_UNIX_DOMAIN_SOCKETS)
22 class ACE_Svc_Export Handle_L_Pipe
: public ACE_Service_Object
, public ACE_LSOCK_Acceptor
27 virtual int init (int argc
, ACE_TCHAR
*argv
[]);
28 virtual int info (ACE_TCHAR
**, size_t) const;
32 int open (const ACE_UNIX_Addr
&suap
, int async
= 0);
33 virtual ACE_HANDLE
get_handle () const;
34 virtual int handle_input (ACE_HANDLE fd
);
35 virtual int handle_close (ACE_HANDLE fd
, ACE_Reactor_Mask
);
37 char *upper_case (char s
[], int n
);
39 ACE_TCHAR rendezvous
[MAXPATHLEN
+ 1];
40 static const ACE_TCHAR
*DEFAULT_RENDEZVOUS
;
43 extern ACE_Service_Object_Type lp
;
45 #if defined (__ACE_INLINE__)
46 #define ACE_INLINE inline
47 #include "Handle_L_Pipe.inl"
50 #endif /* __ACE_INLINE__ */
52 #endif /* ACE_LACKS_UNIX_DOMAIN_SOCKETS */
53 #endif /* _HANDLE_L_PIPE_H */