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

MEM_Stream.i

Go to the documentation of this file.
00001 /* -*- C++ -*- */
00002 // $Id: MEM_Stream.i,v 1.1.1.2 2001/12/04 14:33:03 chad Exp $
00003 
00004 // MEM_Stream.i
00005 
00006 #include "ace/MEM_Stream.h"
00007 
00008 ASYS_INLINE
00009 ACE_MEM_Stream::ACE_MEM_Stream (void)
00010 {
00011   // ACE_TRACE ("ACE_MEM_Stream::ACE_MEM_Stream");
00012 }
00013 
00014 ASYS_INLINE
00015 ACE_MEM_Stream::ACE_MEM_Stream (ACE_HANDLE h)
00016 {
00017   // ACE_TRACE ("ACE_MEM_Stream::ACE_MEM_Stream");
00018   this->set_handle (h);
00019 }
00020 
00021 ASYS_INLINE
00022 ACE_MEM_Stream::~ACE_MEM_Stream (void)
00023 {
00024   // ACE_TRACE ("ACE_MEM_Stream::~ACE_MEM_Stream");
00025 }
00026 
00027 ASYS_INLINE int
00028 ACE_MEM_Stream::close_reader (void)
00029 {
00030   ACE_TRACE ("ACE_MEM_Stream::close_reader");
00031   if (this->get_handle () != ACE_INVALID_HANDLE)
00032     return ACE_OS::shutdown (this->get_handle (), ACE_SHUTDOWN_READ);
00033   else
00034     return 0;
00035 }
00036 
00037 // Shut down just the writing end of a ACE_SOCK.
00038 
00039 ASYS_INLINE int
00040 ACE_MEM_Stream::close_writer (void)
00041 {
00042   ACE_TRACE ("ACE_MEM_Stream::close_writer");
00043   if (this->get_handle () != ACE_INVALID_HANDLE)
00044     return ACE_OS::shutdown (this->get_handle (), ACE_SHUTDOWN_WRITE);
00045   else
00046     return 0;
00047 }
00048 
00049 ASYS_INLINE ssize_t
00050 ACE_MEM_Stream::send_n (const void *buf, int n)
00051 {
00052   return this->send (buf, n);
00053 }
00054 
00055 
00056 ASYS_INLINE ssize_t
00057 ACE_MEM_Stream::recv_n (void *buf, int n)
00058 {
00059   return this->recv (buf, n);
00060 }
00061 
00062 ASYS_INLINE ssize_t
00063 ACE_MEM_Stream::send_n (const void *buf, int n, int flags)
00064 {
00065   return this->send (buf, n, flags);
00066 }
00067 
00068 ASYS_INLINE ssize_t
00069 ACE_MEM_Stream::recv_n (void *buf, int n, int flags)
00070 {
00071   return this->recv (buf, n, flags);
00072 }
00073 
00074 #if 0
00075 ASYS_INLINE ssize_t
00076 ACE_MEM_Stream::recv_n (void *buf,
00077                          size_t len,
00078                          int flags,
00079                          const ACE_Time_Value *timeout) const
00080 {
00081   ACE_TRACE ("ACE_MEM_Stream::recv_n");
00082   return ACE::recv_n (this->get_handle (),
00083                       buf,
00084                       len,
00085                       flags,
00086                       timeout);
00087 }
00088 
00089 ASYS_INLINE ssize_t
00090 ACE_MEM_Stream::recv_n (void *buf,
00091                          size_t len,
00092                          const ACE_Time_Value *timeout) const
00093 {
00094   ACE_TRACE ("ACE_MEM_Stream::recv_n");
00095   return ACE::recv_n (this->get_handle (),
00096                       buf,
00097                       len,
00098                       timeout);
00099 }
00100 
00101 ASYS_INLINE ssize_t
00102 ACE_MEM_Stream::recvv_n (iovec iov[],
00103                           size_t n,
00104                           const ACE_Time_Value *timeout) const
00105 {
00106   ACE_TRACE ("ACE_MEM_Stream::recvv_n");
00107   return ACE::recvv_n (this->get_handle (),
00108                        iov,
00109                        n,
00110                        timeout);
00111 }
00112 
00113 ASYS_INLINE ssize_t
00114 ACE_MEM_Stream::send_n (const void *buf,
00115                          size_t len,
00116                          int flags,
00117                          const ACE_Time_Value *timeout) const
00118 {
00119   ACE_TRACE ("ACE_MEM_Stream::send_n");
00120   return ACE::send_n (this->get_handle (),
00121                       buf,
00122                       len,
00123                       flags,
00124                       timeout);
00125 }
00126 
00127 ASYS_INLINE ssize_t
00128 ACE_MEM_Stream::send_n (const void *buf,
00129                          size_t len,
00130                          const ACE_Time_Value *timeout) const
00131 {
00132   ACE_TRACE ("ACE_MEM_Stream::send_n");
00133   return ACE::send_n (this->get_handle (),
00134                       buf,
00135                       len,
00136                       timeout);
00137 }
00138 
00139 ASYS_INLINE ssize_t
00140 ACE_MEM_Stream::sendv_n (iovec iov[],
00141                           size_t n,
00142                           const ACE_Time_Value *timeout) const
00143 {
00144   ACE_TRACE ("ACE_MEM_Stream::sendv_n");
00145   return ACE::sendv_n (this->get_handle (),
00146                        iov,
00147                        n,
00148                        timeout);
00149 }
00150 
00151 ASYS_INLINE ssize_t
00152 ACE_MEM_Stream::send_urg (const void *ptr,
00153                            size_t len,
00154                            const ACE_Time_Value *timeout) const
00155 {
00156   ACE_TRACE ("ACE_MEM_Stream::send_urg");
00157   return ACE::send (this->get_handle (),
00158                     ptr,
00159                     len,
00160                     MSG_OOB,
00161                     timeout);
00162 }
00163 
00164 ASYS_INLINE ssize_t
00165 ACE_MEM_Stream::recv_urg (void *ptr,
00166                            size_t len,
00167                            const ACE_Time_Value *timeout) const
00168 {
00169   ACE_TRACE ("ACE_MEM_Stream::recv_urg");
00170   return ACE::recv (this->get_handle (),
00171                     ptr,
00172                     len,
00173                     MSG_OOB,
00174                     timeout);
00175 }
00176 #endif /* 0 */

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