7 #ifndef MEDIA_FILE_UDP_FILE_H_
8 #define MEDIA_FILE_UDP_FILE_H_
14 #include "packager/base/compiler_specific.h"
15 #include "packager/media/file/file.h"
17 namespace edash_packager {
25 explicit UdpFile(
const char* address_and_port);
29 virtual bool Close() OVERRIDE;
30 virtual int64_t
Read(
void* buffer, uint64_t length) OVERRIDE;
31 virtual int64_t
Write(
const void* buffer, uint64_t length) OVERRIDE;
32 virtual int64_t
Size() OVERRIDE;
33 virtual bool Flush() OVERRIDE;
34 virtual bool Seek(uint64_t position) OVERRIDE;
35 virtual bool Tell(uint64_t* position) OVERRIDE;
41 virtual bool Open() OVERRIDE;
46 DISALLOW_COPY_AND_ASSIGN(
UdpFile);
52 #endif // MEDIA_FILE_UDP_FILE_H_