22 #ifndef MYTHPROTOTRANSFER_H 23 #define MYTHPROTOTRANSFER_H 25 #include "mythprotobase.h" 27 #define PROTO_TRANSFER_RCVBUF 64000 33 typedef MYTH_SHARED_PTR<ProtoTransfer> ProtoTransferPtr;
38 ProtoTransfer(
const std::string& server,
unsigned port,
const std::string& pathname,
const std::string& sgname);
52 uint32_t GetFileId()
const;
53 std::string GetPathName()
const;
54 std::string GetStorageGroupName()
const;
56 int64_t GetSize()
const;
57 int64_t GetPosition()
const;
58 int64_t GetRequested()
const;
59 int64_t GetRemaining()
const;
61 void SetSize(int64_t size);
62 void SetPosition(int64_t position);
63 void SetRequested(int64_t requested);
70 std::string m_pathName;
71 std::string m_storageGroupName;
int64_t m_fileRequest
Current requested position.
void Flush()
Flushing unread data previously requested.
int64_t m_fileSize
Size of file.
This is the main namespace that encloses all public classes.
int64_t m_filePosition
Current read position.