-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
45cf93e
commit 61e30d2
Showing
31 changed files
with
441 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// | ||
// Created by admin on 9/28/2023. | ||
// | ||
|
||
#ifndef ARDALIVEMEDIASERVER_APPINFO_HPP | ||
#define ARDALIVEMEDIASERVER_APPINFO_HPP | ||
|
||
class AppInfo | ||
{ | ||
}; | ||
|
||
#endif // ARDALIVEMEDIASERVER_APPINFO_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// | ||
// Created by admin on 9/28/2023. | ||
// | ||
|
||
#include "AppInfo.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
add_subdirectory(Execution) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
add_library(Execution | ||
STATIC | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/ExecutionContext.cpp | ||
) | ||
|
||
target_include_directories(Execution | ||
PUBLIC | ||
${CMAKE_CURRENT_SOURCE_DIR}/include | ||
${Boost_INCLUDE_DIR} | ||
) | ||
|
||
add_library(Gondor::Execution ALIAS Execution) |
20 changes: 20 additions & 0 deletions
20
Gondor/Execution/include/Gondor/Execution/ExecutionContext.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include <Gondor/Execution/ITasksExecutor.hpp> | ||
|
||
#include <memory> | ||
|
||
namespace Gondor | ||
{ | ||
namespace Execution | ||
{ | ||
class ExecutionContext : public ITasksExecutor | ||
{ | ||
public: | ||
ExecutionContext(uint32_t threadsCount = 1); | ||
~ExecutionContext() override; | ||
|
||
private: | ||
class Impl; | ||
std::unique_ptr<Impl> m_pImpl; | ||
}; | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
Gondor/Execution/include/Gondor/Execution/ITasksExecutor.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
namespace Gondor | ||
{ | ||
namespace Execution | ||
{ | ||
class ITasksExecutor | ||
{ | ||
public: | ||
virtual ~ITasksExecutor() = default; | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#include <Gondor/Execution/ExecutionContext.hpp> | ||
|
||
#include <boost/asio.hpp> | ||
|
||
#include <iostream> | ||
|
||
namespace Gondor | ||
{ | ||
namespace Execution | ||
{ | ||
class ExecutionContext::Impl | ||
{ | ||
public: | ||
static std::unique_ptr<Impl> Create(uint32_t threadsCount) | ||
{ | ||
return std::make_unique<Impl>(threadsCount); | ||
} | ||
|
||
Impl(uint32_t threadsCount) | ||
: m_pool{1} | ||
, m_executor{m_pool.executor()} | ||
{ | ||
std::cout << "Creating ExecutionContext!" << std::endl; | ||
} | ||
|
||
~Impl() {} | ||
|
||
private: | ||
boost::asio::thread_pool m_pool; | ||
boost::asio::executor m_executor; | ||
}; | ||
|
||
ExecutionContext::ExecutionContext(uint32_t threadsCount) | ||
: m_pImpl{Impl::Create(threadsCount)} | ||
{} | ||
|
||
ExecutionContext::~ExecutionContext() {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...erver/Resources/include/HttpServer/Resources/GenericRtpController/PostResourceHandler.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// | ||
// Created by admin on 9/28/2023. | ||
// | ||
|
||
#ifndef ARDALIVEMEDIASERVER_POSTRESOURCEHANDLER_HPP | ||
#define ARDALIVEMEDIASERVER_POSTRESOURCEHANDLER_HPP | ||
|
||
class PostResourceHandler | ||
{ | ||
}; | ||
|
||
#endif // ARDALIVEMEDIASERVER_POSTRESOURCEHANDLER_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
HttpServer/Resources/src/GenericRtpController/PostResourceHandler.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// | ||
// Created by admin on 9/28/2023. | ||
// | ||
|
||
#include "PostResourceHandler.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
add_subdirectory(MediaManager) | ||
add_subdirectory(GenericRtpClient) | ||
add_subdirectory(RtspClient) | ||
add_subdirectory(RtspClient) | ||
add_subdirectory(MediaServer) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
add_library(MediaServer | ||
STATIC | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/Server.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/GenericRtpClientProxy.cpp | ||
) | ||
|
||
target_include_directories(MediaServer | ||
PUBLIC | ||
${CMAKE_CURRENT_SOURCE_DIR}/include | ||
${Boost_INCLUDE_DIR} | ||
) | ||
|
||
target_link_libraries(MediaServer | ||
PUBLIC | ||
Gondor::Execution | ||
) | ||
|
||
target_link_libraries(MediaServer | ||
PUBLIC | ||
MediaServer::MediaManager | ||
MediaServer::GenericRtpClient | ||
) | ||
|
||
add_library(MediaServer::MediaServer ALIAS MediaServer) |
Oops, something went wrong.