Shaka Packager SDK
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
shaka::UdpFile Class Reference

Implements UdpFile, which receives UDP unicast and multicast streams. More...

#include <udp_file.h>

Inheritance diagram for shaka::UdpFile:

Public Member Functions

 UdpFile (const char *address_and_port)
 
File implementation overrides.
bool Close () override
 
int64_t Read (void *buffer, uint64_t length) override
 
int64_t Write (const void *buffer, uint64_t length) override
 
void CloseForWriting () override
 
int64_t Size () override
 
bool Flush () override
 
bool Seek (uint64_t position) override
 
bool Tell (uint64_t *position) override
 

Protected Member Functions

bool Open () override
 

Detailed Description

Implements UdpFile, which receives UDP unicast and multicast streams.

Definition at line 26 of file udp_file.h.

Constructor & Destructor Documentation

◆ UdpFile()

shaka::UdpFile::UdpFile ( const char *  address_and_port)
explicit
Parameters
file_nameC string containing the address of the stream to receive. It should be of the form "<ip_address>:<port>".

Definition at line 58 of file udp_file.cc.

◆ ~UdpFile()

shaka::UdpFile::~UdpFile ( )
overrideprotected

Definition at line 61 of file udp_file.cc.

Member Function Documentation

◆ Close()

bool shaka::UdpFile::Close ( )
override

Definition at line 63 of file udp_file.cc.

◆ CloseForWriting()

void shaka::UdpFile::CloseForWriting ( )
override

Definition at line 100 of file udp_file.cc.

◆ Flush()

bool shaka::UdpFile::Flush ( )
override

Definition at line 115 of file udp_file.cc.

◆ Open()

bool shaka::UdpFile::Open ( )
overrideprotected

Definition at line 155 of file udp_file.cc.

◆ Read()

int64_t shaka::UdpFile::Read ( void *  buffer,
uint64_t  length 
)
override

Definition at line 76 of file udp_file.cc.

◆ Seek()

bool shaka::UdpFile::Seek ( uint64_t  position)
override

Definition at line 120 of file udp_file.cc.

◆ Size()

int64_t shaka::UdpFile::Size ( )
override

Definition at line 108 of file udp_file.cc.

◆ Tell()

bool shaka::UdpFile::Tell ( uint64_t *  position)
override

Definition at line 126 of file udp_file.cc.

◆ Write()

int64_t shaka::UdpFile::Write ( const void *  buffer,
uint64_t  length 
)
override

Definition at line 93 of file udp_file.cc.


The documentation for this class was generated from the following files: