Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
this->closeAllConnections();
}
this->closeAllConnections();
}
-IHTTPConnection* HTTPConnectionManager::getConnection (std::string url)
-{
- HTTPConnection *con = new HTTPConnection(url, this->stream);
- con->init();
- this->connections.push_back(con);
- return con;
-}
bool HTTPConnectionManager::closeConnection (IHTTPConnection *con)
{
for(std::vector<HTTPConnection *>::iterator it = this->connections.begin(); it != this->connections.end(); ++it)
bool HTTPConnectionManager::closeConnection (IHTTPConnection *con)
{
for(std::vector<HTTPConnection *>::iterator it = this->connections.begin(); it != this->connections.end(); ++it)
void closeAllConnections ();
bool closeConnection (IHTTPConnection *con);
void closeAllConnections ();
bool closeConnection (IHTTPConnection *con);
- IHTTPConnection* getConnection (std::string url);
int read (Chunk *chunk, void *p_buffer, size_t len);
int peek (Chunk *chunk, const uint8_t **pp_peek, size_t i_peek);
void attach (dash::logic::IDownloadRateObserver *observer);
int read (Chunk *chunk, void *p_buffer, size_t len);
int peek (Chunk *chunk, const uint8_t **pp_peek, size_t i_peek);
void attach (dash::logic::IDownloadRateObserver *observer);