3 //=============================================================================
9 //=============================================================================
12 #ifndef ACE_LOCAL_SOCK_STREAM_H
13 #define ACE_LOCAL_SOCK_STREAM_H
14 #include /**/ "ace/pre.h"
16 #include /**/ "ace/config-all.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #if !defined (ACE_LACKS_UNIX_DOMAIN_SOCKETS)
24 #include "ace/SOCK_Stream.h"
25 #include "ace/UNIX_Addr.h"
26 #include "ace/LSOCK.h"
28 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
31 * @class ACE_LSOCK_Stream
33 * @brief Create a Local ACE_SOCK stream.
35 class ACE_Export ACE_LSOCK_Stream
: public ACE_SOCK_Stream
, public ACE_LSOCK
38 // = Send/recv methods.
39 /// Send iovecs via ::writev().
40 ssize_t
send_msg (const iovec iov
[],
44 /// Send iovecs via ::writev().
45 ssize_t
recv_msg (iovec iov
[],
50 ACE_HANDLE
get_handle () const;
52 /// Overrides set_handle() from the base classes.
53 void set_handle (ACE_HANDLE fd
);
56 typedef ACE_UNIX_Addr PEER_ADDR
;
58 /// Dump the state of an object.
61 /// Declare the dynamic allocation hooks.
62 ACE_ALLOC_HOOK_DECLARE
;
64 /// This method simply returns the "local" addr.
65 int get_local_addr (ACE_Addr
&) const;
67 /// This method returns the "local" addr since it's the same value
68 /// for UNIX domain sockets.
69 int get_remote_addr (ACE_Addr
&) const;
72 ACE_END_VERSIONED_NAMESPACE_DECL
74 #if defined (__ACE_INLINE__)
75 #include "ace/LSOCK_Stream.inl"
76 #endif /* __ACE_INLINE__ */
78 #endif /* ACE_LACKS_UNIX_DOMAIN_SOCKETS */
79 #include /**/ "ace/post.h"
80 #endif /* ACE_LOCAL_SOCK_STREAM_H */