summaryrefslogtreecommitdiff
path: root/ACE/protocols/ace/INet/HTTP_StreamPolicyBase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/protocols/ace/INet/HTTP_StreamPolicyBase.cpp')
-rw-r--r--ACE/protocols/ace/INet/HTTP_StreamPolicyBase.cpp50
1 files changed, 50 insertions, 0 deletions
diff --git a/ACE/protocols/ace/INet/HTTP_StreamPolicyBase.cpp b/ACE/protocols/ace/INet/HTTP_StreamPolicyBase.cpp
new file mode 100644
index 00000000000..6b72b17d203
--- /dev/null
+++ b/ACE/protocols/ace/INet/HTTP_StreamPolicyBase.cpp
@@ -0,0 +1,50 @@
+// $Id$
+
+#ifndef ACE_HTTP_STREAM_POLICY_BASE_CPP
+#define ACE_HTTP_STREAM_POLICY_BASE_CPP
+
+#include "ace/INet/HTTP_StreamPolicyBase.h"
+
+ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+
+namespace ACE
+{
+ namespace HTTP
+ {
+ template <class STREAM_BUFFER>
+ StreamPolicyBase<STREAM_BUFFER>::StreamPolicyBase ()
+ : streambuf_ (0)
+ {}
+
+ template <class STREAM_BUFFER>
+ StreamPolicyBase<STREAM_BUFFER>::~StreamPolicyBase ()
+ {}
+
+ template <class STREAM_BUFFER>
+ int StreamPolicyBase<STREAM_BUFFER>::read_from_stream_i (
+ char_type * buf,
+ std::streamsize length)
+ {
+ return this->streambuf_->read_from_stream_i (buf, length);
+ }
+
+ template <class STREAM_BUFFER>
+ int StreamPolicyBase<STREAM_BUFFER>::write_to_stream_i (
+ const char_type * buf,
+ std::streamsize length)
+ {
+ return this->streambuf_->write_to_stream_i (buf, length);
+ }
+
+ template <class STREAM_BUFFER>
+ void StreamPolicyBase<STREAM_BUFFER>::set_stream_buffer (STREAM_BUFFER* streambuf)
+ {
+ this->streambuf_ = streambuf;
+ }
+
+ }
+}
+
+ACE_END_VERSIONED_NAMESPACE_DECL
+
+#endif /* ACE_HTTP_STREAM_POLICY_BASE_CPP */