#include <CachedHTTPFileSource.h>
Inheritance diagram for CachedHTTPFileSource:


Public Member Functions | |
| CachedHTTPFileSource (void) | |
| virtual | ~CachedHTTPFileSource (void) |
| virtual unsigned long | seek (unsigned long inPos) |
| virtual void | close () |
| virtual bool | open (string inSourceLocation) |
| virtual void | clear () |
| virtual bool | isEOF () |
| virtual unsigned long | read (char *outBuffer, unsigned long inNumBytes) |
| DWORD | ThreadProc () |
Static Public Attributes | |
| const int | THREAD_RUN = 0 |
| const int | THREAD_EXIT = 1 |
Protected Types | |
| typedef pair< __int64, wstring > | tMapValue |
| typedef pair< __int64, tMapValue > | tMapEntry |
| typedef map< __int64, tMapValue > | tRangeMap |
Protected Member Functions | |
| CachedHTTPFileSource::tMapEntry | findNextHoleInData (__int64 inUpto) |
| bool | inRange (CachedHTTPFileSource::tMapEntry inTestRange, __int64 inTestValue) |
| bool | startThread () |
| void | DataProcessLoop () |
| virtual bool | setupSocket (string inSourceLocation) |
| virtual void | closeSocket () |
| virtual bool | splitURL (string inURL) |
| virtual string | assembleRequest (string inFilePath) |
| bool | httpRequest (string inRequest) |
Protected Attributes | |
| tRangeMap | mRangeMap |
| SingleMediaFileCache | mReadFile |
| SingleMediaFileCache | mWriteFile |
| tMapEntry | mCurrentReadRange |
| tMapEntry | mCurrentWriteRange |
| CCritSec * | mBufferLock |
| string | mServerName |
| string | mFileName |
| unsigned short | mPort |
| string | mLastResponse |
| SOCKET | mSocket |
| bool | mIsEOF |
| bool | mWasError |
| bool | mIsOpen |
| bool | mSeenResponse |
|
|
Definition at line 31 of file CachedHTTPFileSource.h. Referenced by findNextHoleInData(), and inRange(). |
|
|
Definition at line 30 of file CachedHTTPFileSource.h. |
|
|
Definition at line 33 of file CachedHTTPFileSource.h. |
|
|
Definition at line 4 of file CachedHTTPFileSource.cpp. |
|
|
Definition at line 9 of file CachedHTTPFileSource.cpp. |
|
|
Definition at line 134 of file HTTPSocket.cpp. References HTTPSocket::mServerName. Referenced by HTTPFileSource::open(), and open(). |
|
|
Implements IFilterDataSource. Definition at line 186 of file CachedHTTPFileSource.cpp. |
|
|
Implements IFilterDataSource. Definition at line 209 of file CachedHTTPFileSource.cpp. References HTTPSocket::closeSocket(), and THREAD_EXIT. |
Here is the call graph for this function:

|
|
Definition at line 205 of file HTTPSocket.cpp. References HTTPSocket::mSocket. Referenced by HTTPFileSource::close(), close(), HTTPFileSource::open(), and open(). |
|
|
Definition at line 224 of file CachedHTTPFileSource.cpp. Referenced by ThreadProc(). |
|
|
Definition at line 13 of file CachedHTTPFileSource.cpp. |
Here is the call graph for this function:

|
|
Definition at line 141 of file HTTPSocket.cpp. References HTTPSocket::mSocket. Referenced by HTTPFileSource::open(), and open(). |
|
||||||||||||
|
Definition at line 87 of file CachedHTTPFileSource.cpp. References tMapEntry. Referenced by findNextHoleInData(). |
|
|
Implements IFilterDataSource. Definition at line 191 of file CachedHTTPFileSource.cpp. |
|
|
Implements IFilterDataSource. Definition at line 132 of file CachedHTTPFileSource.cpp. References HTTPSocket::assembleRequest(), HTTPSocket::closeSocket(), HTTPSocket::httpRequest(), mBufferLock, mReadFile, StringHelper::numToString(), SingleMediaFileCache::open(), HTTPSocket::setupSocket(), and startThread(). |
Here is the call graph for this function:

|
||||||||||||
|
Implements IFilterDataSource. Definition at line 107 of file CachedHTTPFileSource.cpp. References SingleMediaFileCache::bytesAvail(), mBufferLock, mReadFile, and SingleMediaFileCache::read(). |
Here is the call graph for this function:

|
|
Implements IFilterDataSource. Definition at line 94 of file CachedHTTPFileSource.cpp. References mReadFile, and SingleMediaFileCache::readSeek(). |
Here is the call graph for this function:

|
|
Definition at line 67 of file HTTPSocket.cpp. References HTTPSocket::mPort, HTTPSocket::mServerName, HTTPSocket::mSocket, and HTTPSocket::splitURL(). Referenced by HTTPFileSource::open(), and open(). |
Here is the call graph for this function:

|
|
Definition at line 153 of file HTTPSocket.cpp. References HTTPSocket::mFileName, HTTPSocket::mPort, and HTTPSocket::mServerName. Referenced by HTTPSocket::setupSocket(). |
|
|
Definition at line 55 of file CachedHTTPFileSource.cpp. References THREAD_RUN. Referenced by open(). |
|
|
Definition at line 63 of file CachedHTTPFileSource.cpp. References DataProcessLoop(), THREAD_EXIT, and THREAD_RUN. |
Here is the call graph for this function:

|
|
Definition at line 49 of file CachedHTTPFileSource.h. |
|
|
Definition at line 40 of file CachedHTTPFileSource.h. |
|
|
Definition at line 41 of file CachedHTTPFileSource.h. |
|
|
Definition at line 49 of file HTTPSocket.h. Referenced by HTTPSocket::splitURL(). |
|
|
Definition at line 54 of file HTTPSocket.h. |
|
|
Definition at line 56 of file HTTPSocket.h. |
|
|
Definition at line 51 of file HTTPSocket.h. |
|
|
Definition at line 50 of file HTTPSocket.h. Referenced by HTTPSocket::setupSocket(), and HTTPSocket::splitURL(). |
|
|
Definition at line 35 of file CachedHTTPFileSource.h. Referenced by findNextHoleInData(). |
|
|
Definition at line 37 of file CachedHTTPFileSource.h. |
|
|
Definition at line 57 of file HTTPSocket.h. |
|
|
Definition at line 48 of file HTTPSocket.h. Referenced by HTTPSocket::assembleRequest(), HTTPSocket::setupSocket(), and HTTPSocket::splitURL(). |
|
|
Definition at line 52 of file HTTPSocket.h. Referenced by HTTPSocket::closeSocket(), HTTPSocket::httpRequest(), and HTTPSocket::setupSocket(). |
|
|
Definition at line 55 of file HTTPSocket.h. |
|
|
Definition at line 38 of file CachedHTTPFileSource.h. |
|
|
Definition at line 16 of file CachedHTTPFileSource.h. Referenced by close(), and ThreadProc(). |
|
|
Definition at line 15 of file CachedHTTPFileSource.h. Referenced by startThread(), and ThreadProc(). |
1.3.9