3 //=============================================================================
7 * $Id: LSOCK.h 80826 2008-03-04 14:51:23Z wotte $
11 //=============================================================================
14 #ifndef ACE_LOCAL_SOCK_H
15 #define ACE_LOCAL_SOCK_H
17 #include /**/ "ace/pre.h"
19 #include /**/ "ace/ACE_export.h"
21 #if !defined (ACE_LACKS_PRAGMA_ONCE)
23 #endif /* ACE_LACKS_PRAGMA_ONCE */
25 #if !defined (ACE_LACKS_UNIX_DOMAIN_SOCKETS)
29 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
34 * @brief Create a Local ACE_SOCK, which is used for passing file
37 class ACE_Export ACE_LSOCK
40 #if defined (ACE_HAS_MSG)
41 /// Send an open FD to another process.
42 ssize_t
send_handle (const ACE_HANDLE handle
) const;
44 /// Recv an open FD from another process.
45 ssize_t
recv_handle (ACE_HANDLE
&handles
,
47 ssize_t
*len
= 0) const;
48 #endif /* ACE_HAS_MSG */
50 /// Dump the state of an object.
51 void dump (void) const;
53 /// Declare the dynamic allocation hooks.
54 ACE_ALLOC_HOOK_DECLARE
;
57 // = Ensure that ACE_LSOCK is an abstract base class
59 /// Default constructor.
62 /// Initialize based on @a handle.
63 ACE_LSOCK (ACE_HANDLE handle
);
66 ACE_HANDLE
get_handle (void) const;
69 void set_handle (ACE_HANDLE handle
);
72 /// An auxiliary handle used to avoid virtual base classes...
73 ACE_HANDLE aux_handle_
;
76 ACE_END_VERSIONED_NAMESPACE_DECL
78 #if defined (__ACE_INLINE__)
79 #include "ace/LSOCK.inl"
80 #endif /* __ACE_INLINE__ */
82 #endif /* ACE_LACKS_UNIX_DOMAIN_SOCKETS */
83 #include /**/ "ace/post.h"
84 #endif /* ACE_LOCAL_SOCK_H */