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"
21 #endif // defined(OS_WIN)
31 explicit UdpFile(
const char* address_and_port);
35 bool Close()
override;
36 int64_t
Read(
void* buffer, uint64_t length)
override;
37 int64_t
Write(
const void* buffer, uint64_t length)
override;
38 int64_t
Size()
override;
39 bool Flush()
override;
40 bool Seek(uint64_t position)
override;
41 bool Tell(uint64_t* position)
override;
52 DISALLOW_COPY_AND_ASSIGN(
UdpFile);
58 #endif // MEDIA_FILE_UDP_FILE_H_