Skip to content

Commit 4d46e1c

Browse files
committed
Update connection provider interfaces.
1 parent e147813 commit 4d46e1c

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

src/oatpp-mbedtls/client/ConnectionProvider.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,15 @@ class ConnectionProvider : public oatpp::base::Countable, public oatpp::network:
8686
*/
8787
oatpp::async::CoroutineStarterForResult<const std::shared_ptr<oatpp::data::stream::IOStream>&> getConnectionAsync() override;
8888

89+
/**
90+
* Does nothing.
91+
* @param connection
92+
*/
93+
void invalidateConnection(const std::shared_ptr<IOStream>& connection) override {
94+
(void)connection;
95+
// DO Nothing.
96+
}
97+
8998
};
9099

91100
}}}

src/oatpp-mbedtls/server/ConnectionProvider.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,15 @@ class ConnectionProvider : public oatpp::base::Countable, public oatpp::network:
102102
throw std::runtime_error("oatpp::mbedtls::server::ConnectionProvider::getConnectionAsync not implemented.");
103103
}
104104

105+
/**
106+
* Does nothing.
107+
* @param connection
108+
*/
109+
void invalidateConnection(const std::shared_ptr<IOStream>& connection) override {
110+
(void)connection;
111+
// DO Nothing.
112+
}
113+
105114
};
106115

107116
}}}

0 commit comments

Comments
 (0)