diff --git a/changelog/1.2.0.md b/changelog/1.2.0.md index 57782ae9..259ced01 100644 --- a/changelog/1.2.0.md +++ b/changelog/1.2.0.md @@ -8,6 +8,7 @@ Contents: - [Changes In ConnectionProvider Interface](#changes-in-connectionprovider-interface) - [Object-Mapping - Type Interpretations](#type-interpretations) - [The new Oat++ ORM](#orm) +- [Changes in oatpp::network Namespace](#changes-in-oatppnetwork-namespace) ## Continuous Multipart Streaming @@ -71,6 +72,8 @@ Renamed methods: This was done to unify providers' APIs and to have same API for all resource providers and resource pools. Connection Providers and Connection Pools of the new ORM database adaptors are implemented based on the same functionality. +More info on ConnectionProvider changes see here - [Changes in oatpp::network Namespace](#changes-in-oatppnetwork-namespace). + ## Type Interpretations To simplify the integration of custom types with oatpp Object-Mapping framework the the "Type Interpretation" feature was introduced. @@ -181,3 +184,38 @@ For details see - [Object-Relational Mapping (ORM) framework](https://oatpp.io/d - `oatpp::network::Address` +### New Constructors for Connection Providers + +oatpp::network::tcp::server::ConnectionProvider + +```cpp +oatpp::network::tcp::server::ConnectionProvider::createShared( + {"localhost", 8000} /* network::Address */ +); + +oatpp::network::tcp::server::ConnectionProvider::createShared( + {"localhost", 8000, oatpp::network::Address::IP_4} /* network::Address */ +); + +oatpp::network::tcp::server::ConnectionProvider::createShared( + {"localhost", 8000, oatpp::network::Address::IP_4} /* network::Address */, + true /* use extended connections */ +); +``` + +oatpp::network::tcp::client::ConnectionProvider + +```cpp +oatpp::network::tcp::client::ConnectionProvider::createShared( + {"localhost", 8000} /* network::Address */ +); + +oatpp::network::tcp::client::ConnectionProvider::createShared( + {"localhost", 8000, oatpp::network::Address::IP_4} /* network::Address */ +); + +oatpp::network::tcp::client::ConnectionProvider::createShared( + {"localhost", 8000, oatpp::network::Address::IP_4} /* network::Address */, + true /* use extended connections */ +); +```