Panda3D
 All Classes Functions Variables Enumerations
chunkedStream.I
1 // Filename: chunkedStream.I
2 // Created by: drose (25Sep02)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: IChunkedStream::Constructor
18 // Access: Public
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 INLINE IChunkedStream::
22 IChunkedStream() : ISocketStream(&_buf) {
23 }
24 
25 ////////////////////////////////////////////////////////////////////
26 // Function: IChunkedStream::Constructor
27 // Access: Public
28 // Description:
29 ////////////////////////////////////////////////////////////////////
30 INLINE IChunkedStream::
31 IChunkedStream(BioStreamPtr *source, HTTPChannel *doc) : ISocketStream(&_buf) {
32  open(source, doc);
33 }
34 
35 ////////////////////////////////////////////////////////////////////
36 // Function: IChunkedStream::open
37 // Access: Public
38 // Description:
39 ////////////////////////////////////////////////////////////////////
40 INLINE IChunkedStream &IChunkedStream::
41 open(BioStreamPtr *source, HTTPChannel *doc) {
42  clear((ios_iostate)0);
43  _buf.open_read(source, doc);
44  return *this;
45 }