#include <HttpdInternal.hxx>
Definition at line 51 of file HttpdInternal.hxx.
◆ HttpdOutput()
◆ ~HttpdOutput()
HttpdOutput::~HttpdOutput |
( |
| ) |
|
◆ AddClient()
void HttpdOutput::AddClient |
( |
int |
fd | ) |
|
◆ Bind()
void HttpdOutput::Bind |
( |
| ) |
|
◆ BroadcastFromEncoder()
void HttpdOutput::BroadcastFromEncoder |
( |
| ) |
|
Broadcasts data from the encoder to all clients.
◆ BroadcastPage()
void HttpdOutput::BroadcastPage |
( |
Page * |
page | ) |
|
Broadcasts a page struct to all clients.
Mutext must not be locked.
◆ CancelAllClients()
void HttpdOutput::CancelAllClients |
( |
| ) |
|
◆ Cast()
◆ Close()
void HttpdOutput::Close |
( |
| ) |
|
Caller must lock the mutex.
◆ Delay()
gcc_pure std::chrono::steady_clock::duration HttpdOutput::Delay |
( |
| ) |
const |
|
noexcept |
◆ EncodeAndPlay()
void HttpdOutput::EncodeAndPlay |
( |
const void * |
chunk, |
|
|
size_t |
size |
|
) |
| |
Throws #std::runtime_error on error.
◆ GetEventLoop()
◆ HasClients()
gcc_pure bool HttpdOutput::HasClients |
( |
| ) |
const |
|
inlinenoexcept |
Check whether there is at least one client.
Caller must lock the mutex.
Definition at line 194 of file HttpdInternal.hxx.
◆ LockHasClients()
gcc_pure bool HttpdOutput::LockHasClients |
( |
| ) |
const |
|
inlinenoexcept |
◆ Open()
Caller must lock the mutex.
◆ OpenEncoder()
void HttpdOutput::OpenEncoder |
( |
AudioFormat & |
audio_format | ) |
|
Caller must lock the mutex.
Throws #std::runtime_error on error.
◆ operator AudioOutput *()
◆ Play()
size_t HttpdOutput::Play |
( |
const void * |
chunk, |
|
|
size_t |
size |
|
) |
| |
◆ ReadPage()
Page* HttpdOutput::ReadPage |
( |
| ) |
|
Reads data from the encoder (as much as available) and returns it as a new #page object.
◆ RemoveClient()
Removes a client from the httpd_output.clients linked list.
◆ SendHeader()
void HttpdOutput::SendHeader |
( |
HttpdClient & |
client | ) |
const |
Sends the encoder header to the client.
This is called right after the response headers have been sent.
◆ SendTag()
void HttpdOutput::SendTag |
( |
const Tag & |
tag | ) |
|
◆ Unbind()
void HttpdOutput::Unbind |
( |
| ) |
|
◆ cond
This condition gets signalled when an item is removed from #pages.
Definition at line 90 of file HttpdInternal.hxx.
◆ content_type
const char* HttpdOutput::content_type |
◆ genre
char const* HttpdOutput::genre |
◆ mutex
This mutex protects the listener socket and the client list.
Definition at line 84 of file HttpdInternal.hxx.
◆ name
char const* HttpdOutput::name |
◆ website
char const* HttpdOutput::website |
The documentation for this class was generated from the following file: