diff options
Diffstat (limited to 'ace/LSOCK_Stream.h')
-rw-r--r-- | ace/LSOCK_Stream.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/ace/LSOCK_Stream.h b/ace/LSOCK_Stream.h new file mode 100644 index 00000000000..be37419b15b --- /dev/null +++ b/ace/LSOCK_Stream.h @@ -0,0 +1,57 @@ +/* -*- C++ -*- */ +// $Id$ + + +// ============================================================================ +// +// = LIBRARY +// ace +// +// = FILENAME +// LSOCK_Stream.h +// +// = AUTHOR +// Doug Schmidt +// +// ============================================================================ + +#if !defined (ACE_LOCAL_SOCK_STREAM_H) +#define ACE_LOCAL_SOCK_STREAM_H + +#include "ace/SOCK_Stream.h" +#include "ace/LSOCK.h" + +#if !defined (ACE_LACKS_UNIX_DOMAIN_SOCKETS) + +class ACE_Export ACE_LSOCK_Stream : public ACE_SOCK_Stream, public ACE_LSOCK + // = TITLE + // Create a Local ACE_SOCK stream. +{ +public: + // = Send/recv methods. + ssize_t send_msg (const iovec iov[], size_t n, int fd); + // Send iovecs via <::writev>. + + ssize_t recv_msg (iovec iov[], size_t n, int &fd); + // Send iovecs via <::writev>. + + ACE_HANDLE get_handle (void) const; + // Get handle. + void set_handle (ACE_HANDLE fd); + // Overrides set_handle from the base classes. + + void dump (void) const; + // Dump the state of an object. + + ACE_ALLOC_HOOK_DECLARE; + // Declare the dynamic allocation hooks. + +private: + int get_remote_addr (ACE_Addr &) const; + // Do not allow this function to percolate up to this interface... +}; + +#include "ace/LSOCK_Stream.i" + +#endif /* ACE_LACKS_UNIX_DOMAIN_SOCKETS */ +#endif /* ACE_LOCAL_SOCK_STREAM_H */ |