Minor changes
This commit is contained in:
parent
4ccc2f526f
commit
37fa1de81b
@ -46,8 +46,8 @@ The daemon can be cross-compiled for multiple platforms and implements the follo
|
|||||||
* HTTP REST API for the daemon control and configuration
|
* HTTP REST API for the daemon control and configuration
|
||||||
* SAP sources discovery and advertisement compatible with AES67 standard
|
* SAP sources discovery and advertisement compatible with AES67 standard
|
||||||
* mDNS sources discovery and advertisement (using Linux Avahi) compatible with Ravenna standard
|
* mDNS sources discovery and advertisement (using Linux Avahi) compatible with Ravenna standard
|
||||||
* RTSP client and server to retrieve or return SDP files via DESCRIBE method
|
* RTSP client and server to retrieve or return SDP files via DESCRIBE method compatible with Ravenna standard
|
||||||
* IGMP handling for SAP and RTP sessions
|
* IGMP handling for SAP, PTP and RTP sessions
|
||||||
|
|
||||||
The directory also contains the daemon regression tests in the [tests](daemon/tests) subdirectory.
|
The directory also contains the daemon regression tests in the [tests](daemon/tests) subdirectory.
|
||||||
See the [README](daemon/README.md) file in this directory for additional information about the AES67 daemon configuration and the HTTP REST API.
|
See the [README](daemon/README.md) file in this directory for additional information about the AES67 daemon configuration and the HTTP REST API.
|
||||||
|
@ -10,8 +10,8 @@ The daemon is responsible for:
|
|||||||
* HTTP REST API for the daemon control and configuration
|
* HTTP REST API for the daemon control and configuration
|
||||||
* SAP sources discovery and advertisement compatible with AES67 standard
|
* SAP sources discovery and advertisement compatible with AES67 standard
|
||||||
* mDNS sources discovery and advertisement (using Linux Avahi) compatible with Ravenna standard
|
* mDNS sources discovery and advertisement (using Linux Avahi) compatible with Ravenna standard
|
||||||
* RTSP client and server to retrieve or return SDP files via DESCRIBE method
|
* RTSP client and server to retrieve or return SDP files via DESCRIBE method compatible with Ravenna standard
|
||||||
* IGMP handling for SAP and RTP sessions
|
* IGMP handling for SAP, PTP and RTP sessions
|
||||||
|
|
||||||
|
|
||||||
## Configuration file ##
|
## Configuration file ##
|
||||||
|
@ -20,10 +20,6 @@
|
|||||||
|
|
||||||
using boost::asio::ip::tcp;
|
using boost::asio::ip::tcp;
|
||||||
|
|
||||||
void RtspServer::worker() {
|
|
||||||
io_service_.run();
|
|
||||||
}
|
|
||||||
|
|
||||||
void RtspServer::process() {
|
void RtspServer::process() {
|
||||||
/* cleanup of expired sessions */
|
/* cleanup of expired sessions */
|
||||||
std::lock_guard<std::mutex> lock(mutex_);
|
std::lock_guard<std::mutex> lock(mutex_);
|
||||||
|
@ -86,7 +86,7 @@ class RtspServer {
|
|||||||
bool init() {
|
bool init() {
|
||||||
accept();
|
accept();
|
||||||
/* start rtsp server on a separate thread */
|
/* start rtsp server on a separate thread */
|
||||||
res_ = std::async(std::launch::async, &RtspServer::worker, this);
|
res_ = std::async([this](){ io_service_.run(); });
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -100,7 +100,6 @@ class RtspServer {
|
|||||||
void process();
|
void process();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void worker();
|
|
||||||
void accept();
|
void accept();
|
||||||
|
|
||||||
std::mutex mutex_;
|
std::mutex mutex_;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user