21 #ifndef STREAM_WRITER_H 22 #define STREAM_WRITER_H 24 #include "StreamHttpParser.h" 25 #include "Interfaces/RawSoundReceiver/RawSoundReceiverInterface.h" 26 #include "Helper/Pimpl.h" 50 void sig_new_connection(
const QString& ip);
55 enum class Type : quint8
146 void socket_disconnected();
147 void data_available();
150 typedef std::shared_ptr<StreamWriter> StreamWriterPtr;
The StreamWriter class. This class is the interface between StreamDataSender and StreamServer. It watches the client socket and spreads data to its client.
Definition: StreamWriter.h:41
StreamWriter(QTcpSocket *socket, const QString &ip, const MetaData &md)
StreamWriter.
void new_audio_data(const uchar *data, quint64 size) override
new audio data has arrived and has to be forwarded to the socket
The StreamDataSender class. This class is used for sending the raw bytes.
Definition: StreamDataSender.h:34
bool send_playlist()
Send a m3u playlist (see StreamDataSender)
void dismiss()
stop sending sound over the client socket
void disconnect()
disconnect a client socket
The RawSoundReceiver interface.
Definition: RawSoundReceiverInterface.h:30
bool send_html5()
send a html5 website (see StreamDataSender)
The EngineHandler class.
Definition: EngineHandler.h:41
void change_track(const MetaData &md)
send new icy data to clients, and send new metadata to remote controls.
bool send_header(bool reject)
send a appropriate header based on the type of request (see StreamDataSender)
bool send_bg()
Send website background (see StreamDataSender)
HttpAnswer
The HttpAnswer enum.
Definition: StreamHttpParser.h:40
bool send_favicon()
Send the http favicon (see StreamDataSender)
QString get_ip() const
get client ip address
bool send_metadata()
Send track information (see StreamDataSender)