mirror of
https://github.com/oatpp/oatpp.git
synced 2025-04-18 19:00:23 +08:00
Add setter for Server
s ConnectionProvider
.
We may need synchronization for that.
This commit is contained in:
parent
f1599f2144
commit
462b9c43bf
@ -163,6 +163,14 @@ v_int32 Server::getStatus() {
|
||||
return m_status.load();
|
||||
}
|
||||
|
||||
void Server::setConnectionProvider(const std::shared_ptr<ServerConnectionProvider> &connectionProvider) {
|
||||
m_connectionProvider = connectionProvider;
|
||||
}
|
||||
|
||||
void Server::setConnectionHandler(const std::shared_ptr<ConnectionHandler> &connectionHandler) {
|
||||
m_connectionHandler = connectionHandler;
|
||||
}
|
||||
|
||||
Server::~Server() {
|
||||
stop();
|
||||
}
|
||||
|
@ -154,6 +154,18 @@ public:
|
||||
* </ul>
|
||||
*/
|
||||
v_int32 getStatus();
|
||||
|
||||
/**
|
||||
* Replaces the internal connection-provider
|
||||
* @param connectionProvider - &id:oatpp::network::ConnectionProvider;.
|
||||
*/
|
||||
void setConnectionProvider(const std::shared_ptr<ServerConnectionProvider>& connectionProvider);
|
||||
|
||||
/**
|
||||
* Replaces the internal connection-handler
|
||||
* @param connectionHandler - &id:oatpp::network::ConnectionHandler;.
|
||||
*/
|
||||
void setConnectionHandler(const std::shared_ptr<ConnectionHandler>& connectionHandler);
|
||||
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user