Micro RTSP Audio
Public Member Functions | Public Attributes | List of all members
RtspSession Class Reference

Class for handling an RTSP session Requires a an AudioStreamer as a source for Streaming. More...

#include <RTSPSession.h>

Public Member Functions

 RtspSession (WiFiClient &aRtspClient, AudioStreamer *aStreamer)
 
 ~RtspSession ()
 
bool handleRequests (uint32_t readTimeoutMs)
 

Public Attributes

bool m_streaming
 
bool m_stopped
 
bool m_sessionOpen = true
 
char * RecvBuf = nullptr
 
char * CurRequest = nullptr
 
char CmdName [RTSP_PARAM_STRING_MAX]
 

Detailed Description

Class for handling an RTSP session Requires a an AudioStreamer as a source for Streaming.

Constructor & Destructor Documentation

◆ RtspSession()

RtspSession::RtspSession ( WiFiClient &  aRtspClient,
AudioStreamer aStreamer 
)

Creates a new RTSP session object

Parameters
aRtspClientsocket to which the RTSP client has connected
aStreamerAudioStreamer to be used a source for an RTP stream

◆ ~RtspSession()

RtspSession::~RtspSession ( )

Closes socket and deletes allocated memory

Member Function Documentation

◆ handleRequests()

bool RtspSession::handleRequests ( uint32_t  readTimeoutMs)

Read from the socket and parse commands if possible

Parameters
readTimeoutMstime in milliseconds to wait for incoming data
Returns
false if the read timed out

Read from our socket, parsing commands as possible.


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