Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

LSOCK_Stream.h

Go to the documentation of this file.
00001 /* -*- C++ -*- */
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    LSOCK_Stream.h
00006  *
00007  *  $Id: LSOCK_Stream.h,v 1.1.1.4 2003/02/21 18:36:32 chad Exp $
00008  *
00009  *  @author Doug Schmidt
00010  */
00011 //=============================================================================
00012 
00013 
00014 #ifndef ACE_LOCAL_SOCK_STREAM_H
00015 #define ACE_LOCAL_SOCK_STREAM_H
00016 #include "ace/pre.h"
00017 
00018 #include "ace/config-all.h"
00019 
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 # pragma once
00022 #endif /* ACE_LACKS_PRAGMA_ONCE */
00023 
00024 #if !defined (ACE_LACKS_UNIX_DOMAIN_SOCKETS)
00025 
00026 #include "ace/SOCK_Stream.h"
00027 #include "ace/UNIX_Addr.h"
00028 #include "ace/LSOCK.h"
00029 
00030 /**
00031  * @class ACE_LSOCK_Stream
00032  *
00033  * @brief Create a Local ACE_SOCK stream.
00034  */
00035 class ACE_Export ACE_LSOCK_Stream : public ACE_SOCK_Stream, public ACE_LSOCK
00036 {
00037 public:
00038   // = Send/recv methods.
00039   /// Send iovecs via <::writev>.
00040   ssize_t send_msg (const iovec iov[],
00041                     size_t n,
00042                     ACE_HANDLE handle);
00043 
00044   /// Send iovecs via <::writev>.
00045   ssize_t recv_msg (iovec iov[],
00046                     size_t n,
00047                     ACE_HANDLE &handle);
00048 
00049   /// Get handle.
00050   ACE_HANDLE get_handle (void) const;
00051 
00052   /// Overrides set_handle from the base classes.
00053   void set_handle (ACE_HANDLE fd);
00054 
00055   // = Meta-type info
00056   typedef ACE_UNIX_Addr PEER_ADDR;
00057 
00058   /// Dump the state of an object.
00059   void dump (void) const;
00060 
00061   /// Declare the dynamic allocation hooks.
00062   ACE_ALLOC_HOOK_DECLARE;
00063 
00064   /// This method simply returns the "local" addr.
00065   int get_local_addr (ACE_Addr &) const;
00066 
00067   /// This method returns the "local" addr since it's the same value
00068   /// for UNIX domain sockets.
00069   int get_remote_addr (ACE_Addr &) const;
00070 };
00071 
00072 #if !defined (ACE_LACKS_INLINE_FUNCTIONS)
00073 #include "ace/LSOCK_Stream.i"
00074 #endif
00075 
00076 #endif /* ACE_LACKS_UNIX_DOMAIN_SOCKETS */
00077 #include "ace/post.h"
00078 #endif /* ACE_LOCAL_SOCK_STREAM_H */

Generated on Mon Jun 16 11:20:03 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002