Added constant accessors to HTTP::Downloader
This commit is contained in:
parent
66dff82144
commit
c5d0a9a8ad
2 changed files with 4 additions and 2 deletions
|
@ -61,6 +61,7 @@ namespace HTTP{
|
|||
|
||||
/// Returns a reference to the internal Socket::Connection class instance.
|
||||
Socket::Connection &Downloader::getSocket(){return S;}
|
||||
const Socket::Connection &Downloader::getSocket() const{return S;}
|
||||
|
||||
Downloader::~Downloader(){S.close();}
|
||||
|
||||
|
@ -280,7 +281,7 @@ namespace HTTP{
|
|||
return nbLink;
|
||||
}
|
||||
|
||||
// continue handling a request, origininally set up by the getNonBlocking() function
|
||||
// continue handling a request, originally set up by the getNonBlocking() function
|
||||
// returns true if the request is complete
|
||||
bool Downloader::continueNonBlocking(Util::DataCallback &cb){
|
||||
while (true){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue