![]() |
Sayonara Player
|
The StreamWriter class. This class is the interface between StreamDataSender and StreamServer. It watches the client socket and spreads data to its client. More...
#include <StreamWriter.h>
Public Types | |
enum | Type : uint8_t { Undefined, Standard, Invalid, Streaming } |
Signals | |
void | sig_new_connection (const QString &ip) |
void | sig_disconnected (StreamWriter *sw) |
Public Member Functions | |
StreamWriter (QTcpSocket *socket, const QString &ip, const MetaData &md) | |
StreamWriter. More... | |
QString | get_ip () const |
get client ip address More... | |
void | change_track (const MetaData &md) |
send new icy data to clients, and send new metadata to remote controls. More... | |
bool | send_playlist () |
Send a m3u playlist (see StreamDataSender) More... | |
bool | send_favicon () |
Send the http favicon (see StreamDataSender) More... | |
bool | send_metadata () |
Send track information (see StreamDataSender) More... | |
bool | send_bg () |
Send website background (see StreamDataSender) More... | |
bool | send_html5 () |
send a html5 website (see StreamDataSender) More... | |
bool | send_header (bool reject) |
send a appropriate header based on the type of request (see StreamDataSender) More... | |
StreamHttpParser::HttpAnswer | parse_message () |
void | disconnect () |
disconnect a client socket | |
void | dismiss () |
stop sending sound over the client socket | |
void | new_audio_data (const Byte *data, uint64_t size) override |
new audio data has arrived and has to be forwarded to the socket More... | |
The StreamWriter class. This class is the interface between StreamDataSender and StreamServer. It watches the client socket and spreads data to its client.
StreamWriter::StreamWriter | ( | QTcpSocket * | socket, |
const QString & | ip, | ||
const MetaData & | md | ||
) |
socket | |
ip | |
md |
void StreamWriter::change_track | ( | const MetaData & | md | ) |
send new icy data to clients, and send new metadata to remote controls.
md | Track structure |
QString StreamWriter::get_ip | ( | ) | const |
get client ip address
|
overridevirtual |
new audio data has arrived and has to be forwarded to the socket
data | |
size |
Implements RawSoundReceiverInterface.
bool StreamWriter::send_bg | ( | ) |
Send website background (see StreamDataSender)
bool StreamWriter::send_favicon | ( | ) |
Send the http favicon (see StreamDataSender)
bool StreamWriter::send_header | ( | bool | reject | ) |
send a appropriate header based on the type of request (see StreamDataSender)
reject | if true, a reject header is sent. |
bool StreamWriter::send_html5 | ( | ) |
send a html5 website (see StreamDataSender)
bool StreamWriter::send_metadata | ( | ) |
Send track information (see StreamDataSender)
bool StreamWriter::send_playlist | ( | ) |
Send a m3u playlist (see StreamDataSender)