DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs
udp_file_win.cc
1 // Copyright 2015 Google Inc. All rights reserved.
2 //
3 // Use of this source code is governed by a BSD-style
4 // license that can be found in the LICENSE file or at
5 // https://developers.google.com/open-source/licenses/bsd
6 
7 #include "packager/media/file/udp_file.h"
8 
9 #include "packager/base/logging.h"
10 
11 namespace edash_packager {
12 namespace media {
13 
14 UdpFile::UdpFile(const char* file_name) : File(file_name), socket_(0) {
15 }
16 
17 UdpFile::~UdpFile() {}
18 
19 bool UdpFile::Close() {
20  NOTIMPLEMENTED();
21  delete this;
22  return false;
23 }
24 
25 int64_t UdpFile::Read(void* buffer, uint64_t length) {
26  NOTIMPLEMENTED();
27  return -1;
28 }
29 
30 int64_t UdpFile::Write(const void* buffer, uint64_t length) {
31  NOTIMPLEMENTED();
32  return -1;
33 }
34 
35 int64_t UdpFile::Size() {
36  NOTIMPLEMENTED();
37  return -1;
38 }
39 
40 bool UdpFile::Flush() {
41  NOTIMPLEMENTED();
42  return false;
43 }
44 
45 bool UdpFile::Seek(uint64_t position) {
46  NOTIMPLEMENTED();
47  return false;
48 }
49 
50 bool UdpFile::Tell(uint64_t* position) {
51  NOTIMPLEMENTED();
52  return false;
53 }
54 
55 bool UdpFile::Open() {
56  NOTIMPLEMENTED();
57  return false;
58 }
59 
60 } // namespace media
61 } // namespace edash_packager
UdpFile(const char *address_and_port)
bool Tell(uint64_t *position) override
bool Seek(uint64_t position) override
int64_t Write(const void *buffer, uint64_t length) override
int64_t Read(void *buffer, uint64_t length) override
bool Open() override
Internal open. Should not be used directly.