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 bool Close()
override;
30 int64_t
Read(
void* buffer, uint64_t length)
override;
31 int64_t
Write(
const void* buffer, uint64_t length)
override;
32 int64_t
Size()
override;
33 bool Flush()
override;
34 bool Seek(uint64_t position)
override;
35 bool Tell(uint64_t* position)
override;
46 DISALLOW_COPY_AND_ASSIGN(
UdpFile);
52 #endif // MEDIA_FILE_UDP_FILE_H_