00001 // $Id: HTTP_StreamPolicyBase.cpp 90737 2010-06-21 09:46:14Z mcorino $ 00002 00003 #ifndef ACE_HTTP_STREAM_POLICY_BASE_CPP 00004 #define ACE_HTTP_STREAM_POLICY_BASE_CPP 00005 00006 #include "ace/INet/HTTP_StreamPolicyBase.h" 00007 00008 ACE_BEGIN_VERSIONED_NAMESPACE_DECL 00009 00010 namespace ACE 00011 { 00012 namespace HTTP 00013 { 00014 template <class STREAM_BUFFER> 00015 StreamPolicyBase<STREAM_BUFFER>::StreamPolicyBase () 00016 : streambuf_ (0) 00017 {} 00018 00019 template <class STREAM_BUFFER> 00020 StreamPolicyBase<STREAM_BUFFER>::~StreamPolicyBase () 00021 {} 00022 00023 template <class STREAM_BUFFER> 00024 int StreamPolicyBase<STREAM_BUFFER>::read_from_stream_i ( 00025 char_type * buf, 00026 std::streamsize length) 00027 { 00028 return this->streambuf_->read_from_stream_i (buf, length); 00029 } 00030 00031 template <class STREAM_BUFFER> 00032 int StreamPolicyBase<STREAM_BUFFER>::write_to_stream_i ( 00033 const char_type * buf, 00034 std::streamsize length) 00035 { 00036 return this->streambuf_->write_to_stream_i (buf, length); 00037 } 00038 00039 template <class STREAM_BUFFER> 00040 void StreamPolicyBase<STREAM_BUFFER>::set_stream_buffer (STREAM_BUFFER* streambuf) 00041 { 00042 this->streambuf_ = streambuf; 00043 } 00044 00045 } 00046 } 00047 00048 ACE_END_VERSIONED_NAMESPACE_DECL 00049 00050 #endif /* ACE_HTTP_STREAM_POLICY_BASE_CPP */