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

panda/src/downloader/chunkedStream.cxx

Go to the documentation of this file.
00001 // Filename: chunkedStream.cxx
00002 // Created by:  drose (25Sep02)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 #include "chunkedStream.h"
00020 
00021 // This module is not compiled if OpenSSL is not available.
00022 #ifdef HAVE_SSL
00023 
00024 ////////////////////////////////////////////////////////////////////
00025 //     Function: IChunkedStream::is_closed
00026 //       Access: Public, Virtual
00027 //  Description: Returns true if the last eof condition was triggered
00028 //               because the socket has genuinely closed, or false if
00029 //               we can expect more data to come along shortly.
00030 ////////////////////////////////////////////////////////////////////
00031 bool IChunkedStream::
00032 is_closed() {
00033   if (_buf._done || (*_buf._source)->is_closed()) {
00034     return true;
00035   }
00036   clear();
00037   return false;
00038 }
00039 
00040 #endif  // HAVE_SSL

Generated on Fri May 2 00:36:43 2003 for Panda by doxygen1.3