[6916] Fixed typos in spell checking code.
[getmangos.git] / dep / ACE_wrappers / ace / LSOCK_Stream.h
blob3476a51df7b1cab4e313207ac8e75a301c442f6c
1 /* -*- C++ -*- */
3 //=============================================================================
4 /**
5 * @file LSOCK_Stream.h
7 * $Id: LSOCK_Stream.h 80826 2008-03-04 14:51:23Z wotte $
9 * @author Doug Schmidt
11 //=============================================================================
14 #ifndef ACE_LOCAL_SOCK_STREAM_H
15 #define ACE_LOCAL_SOCK_STREAM_H
16 #include /**/ "ace/pre.h"
18 #include /**/ "ace/config-all.h"
20 #if !defined (ACE_LACKS_PRAGMA_ONCE)
21 # pragma once
22 #endif /* ACE_LACKS_PRAGMA_ONCE */
24 #if !defined (ACE_LACKS_UNIX_DOMAIN_SOCKETS)
26 #include "ace/SOCK_Stream.h"
27 #include "ace/UNIX_Addr.h"
28 #include "ace/LSOCK.h"
30 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
32 /**
33 * @class ACE_LSOCK_Stream
35 * @brief Create a Local ACE_SOCK stream.
37 class ACE_Export ACE_LSOCK_Stream : public ACE_SOCK_Stream, public ACE_LSOCK
39 public:
40 // = Send/recv methods.
41 /// Send iovecs via <::writev>.
42 ssize_t send_msg (const iovec iov[],
43 size_t n,
44 ACE_HANDLE handle);
46 /// Send iovecs via <::writev>.
47 ssize_t recv_msg (iovec iov[],
48 size_t n,
49 ACE_HANDLE &handle);
51 /// Get handle.
52 ACE_HANDLE get_handle (void) const;
54 /// Overrides set_handle from the base classes.
55 void set_handle (ACE_HANDLE fd);
57 // = Meta-type info
58 typedef ACE_UNIX_Addr PEER_ADDR;
60 /// Dump the state of an object.
61 void dump (void) const;
63 /// Declare the dynamic allocation hooks.
64 ACE_ALLOC_HOOK_DECLARE;
66 /// This method simply returns the "local" addr.
67 int get_local_addr (ACE_Addr &) const;
69 /// This method returns the "local" addr since it's the same value
70 /// for UNIX domain sockets.
71 int get_remote_addr (ACE_Addr &) const;
74 ACE_END_VERSIONED_NAMESPACE_DECL
76 #if defined (__ACE_INLINE__)
77 #include "ace/LSOCK_Stream.inl"
78 #endif /* __ACE_INLINE__ */
80 #endif /* ACE_LACKS_UNIX_DOMAIN_SOCKETS */
81 #include /**/ "ace/post.h"
82 #endif /* ACE_LOCAL_SOCK_STREAM_H */