Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / LSOCK_Stream.h
blobd780d32973d459e378186c7a26ea0830b001c8f8
1 /* -*- C++ -*- */
3 //=============================================================================
4 /**
5 * @file LSOCK_Stream.h
7 * @author Doug Schmidt
8 */
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)
19 # 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
30 /**
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
37 public:
38 // = Send/recv methods.
39 /// Send iovecs via ::writev().
40 ssize_t send_msg (const iovec iov[],
41 size_t n,
42 ACE_HANDLE handle);
44 /// Send iovecs via ::writev().
45 ssize_t recv_msg (iovec iov[],
46 size_t n,
47 ACE_HANDLE &handle);
49 /// Get handle.
50 ACE_HANDLE get_handle () const;
52 /// Overrides set_handle() from the base classes.
53 void set_handle (ACE_HANDLE fd);
55 // = Meta-type info
56 typedef ACE_UNIX_Addr PEER_ADDR;
58 /// Dump the state of an object.
59 void dump () const;
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 */