URY playd
C++ minimalist audio player
ResponseSink Class Reference

Abstract class for anything that can be sent a response. More...

#include <response.hpp>

+ Inheritance diagram for ResponseSink:

Public Member Functions

virtual ~ResponseSink ()=default
 Empty virtual destructor for ResponseSink.
 
virtual void Respond (size_t id, const Response &response) const
 Outputs a response. More...
 

Detailed Description

Abstract class for anything that can be sent a response.

Definition at line 117 of file response.hpp.

Member Function Documentation

§ Respond()

void ResponseSink::Respond ( size_t  id,
const Response response 
) const
virtual

Outputs a response.

Parameters
idThe ID of the client of the ResponseSink receiving this response. Use 0 for broadcasts.
responseThe Response to output.

Reimplemented in IoCore.

Definition at line 97 of file response.cpp.

Referenced by Player::Respond().

98 {
99  // By default, do nothing.
100 }

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