RTSPServerBase - Shared logic for RTSPServer and RTSPServerTaskless.
More...
#include <RTSPServerBase.h>
template<typename Platform>
class audio_tools::RTSPServerBase< Platform >
RTSPServerBase - Shared logic for RTSPServer and RTSPServerTaskless.
This class contains all protocol, session, and connection logic, but no task/timer code. Derived classes implement scheduling: either with tasks (RTSPServer) or manual loop (RTSPServerTaskless).
- Template Parameters
-
| Platform | Target hardware platform (e.g., Arduino, ESP32) |
◆ RTSPServerBase()
template<typename Platform >
◆ ~RTSPServerBase()
template<typename Platform >
◆ acceptClient()
template<typename Platform >
Accept new client if none is active.
◆ begin() [1/2]
template<typename Platform >
◆ begin() [2/2]
template<typename Platform >
| bool begin |
( |
const char * |
ssid, |
|
|
const char * |
password |
|
) |
| |
|
inline |
Start server and connect to WiFi (ESP32 only)
◆ clientCount()
template<typename Platform >
Get number of connected clients.
◆ end()
template<typename Platform >
Stop server and clean up.
◆ handleSession()
template<typename Platform >
Handle requests session if active.
◆ operator bool()
template<typename Platform >
Returns true if any client is connected.
◆ setOnSessionPath()
template<typename Platform >
| void setOnSessionPath |
( |
bool(*)(const char *path, void *ref) |
cb, |
|
|
void * |
ref = nullptr |
|
) |
| |
|
inline |
Set callback for session path.
◆ setSessionTimeoutMs()
template<typename Platform >
| void setSessionTimeoutMs |
( |
unsigned long |
ms | ) |
|
|
inline |
Set session timeout in milliseconds.
◆ client
template<typename Platform >
| Platform::TcpClientType client |
|
protected |
◆ client_count
template<typename Platform >
◆ lastRequestTime
template<typename Platform >
| unsigned long lastRequestTime = 0 |
|
protected |
◆ onSessionPathCb
template<typename Platform >
| bool(* onSessionPathCb) (const char *, void *) = nullptr |
|
protected |
◆ onSessionPathRef
template<typename Platform >
| void* onSessionPathRef = nullptr |
|
protected |
◆ port
template<typename Platform >
◆ rtspSession
template<typename Platform >
◆ server
template<typename Platform >
| Platform::TcpServerType* server = nullptr |
|
protected |
◆ sessionTimeoutMs
template<typename Platform >
| unsigned long sessionTimeoutMs = 60000 |
|
protected |
◆ streamer
template<typename Platform >
The documentation for this class was generated from the following file: