#ifndef ROOT_TWebFile
#define ROOT_TWebFile
#ifndef ROOT_TFile
#include "TFile.h"
#endif
#ifndef ROOT_TUrl
#include "TUrl.h"
#endif
class TSocket;
class TWebSocket;
class TWebFile : public TFile {
friend class TWebSocket;
private:
mutable Long64_t fSize;
TSocket *fSocket;
Bool_t fHasModRoot;
Bool_t fHTTP11;
TWebFile() : fSocket(0) { }
void Init(Bool_t);
Int_t GetHead();
Int_t GetLine(TSocket *s, char *line, Int_t size);
Int_t GetFromWeb(char *buf, Int_t len, const TString &msg);
Int_t GetFromWeb10(char *buf, Int_t len, const TString &msg);
Bool_t ReadBuffer10(char *buf, Int_t len);
Bool_t ReadBuffers10(char *buf, Long64_t *pos, Int_t *len, Int_t nbuf);
public:
TWebFile(const char *url);
TWebFile(TUrl url);
virtual ~TWebFile();
Long64_t GetSize() const;
Bool_t IsOpen() const;
Int_t ReOpen(Option_t *mode);
Bool_t ReadBuffer(char *buf, Int_t len);
Bool_t ReadBuffers(char *buf, Long64_t *pos, Int_t *len, Int_t nbuf);
void Seek(Long64_t offset, ERelativeTo pos = kBeg);
ClassDef(TWebFile,1)
};
#endif
Last change: Thu Dec 18 09:31:39 2008
Last generated: 2008-12-18 09:31
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.