mirror of
https://gitee.com/zyjblog/oatpp.git
synced 2024-12-22 22:16:37 +08:00
Update 1.2.0.md
This commit is contained in:
parent
1386f9d1d9
commit
a23532f937
@ -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 */
|
||||
);
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user