해당 SDK는 microsoft에서 진행하고있는 오픈소스 프로젝트 Casablanca입니다.
현재 업데이트가 뜸~ 하지만 꾸준히 진행되고 있습니다.
지금부터 특징에 대해 설명해드리겠습니다.
1. cpprestSDK의 특징
2. cpprestSDK의 handler
http_listener를 통해 소켓을 open()할 경우 비동기로 처리되며 수신이 완료되는 순간 연결을 끊습니다.
이때 소켓이 열리게되면 handler를 호출하게 되며 handler를 통해 적합한 작업을 수행하게 됩니다.
이런식으로 되어있으며 handler는 listener 내부의 <details::http_listener_impl> m_impl
라는 unique_ptr에 의해 실행됩니다.
3. 매크로 'U'
이 외에도 pplx에는 유용한 기능들이 많아서 굳이 restful이 아니더라도 다양하게 활용할 수 있습니다.
cpprestSDK github : https://github.com/microsoft/cpprestsdk
cpprestSDK FAQ : https://github.com/microsoft/cpprestsdk/wiki/FAQ
cpprestSDK sample code :
1. https://medium.com/audelabs/modern-c-micro-service-implementation-rest-api-b499ffeaf898
2. https://medium.com/audelabs/modern-c-micro-serivce-rest-api-part-ii-7be067440ca8
'프로그래밍 > C++ rest(Casablanca)' 카테고리의 다른 글
C++] cpprestful-server 완성본(CpprestSDK) (0) | 2020.11.05 |
---|---|
C++] cpprestSDK(Casablanca) https(ssl) 적용방법. (0) | 2020.07.16 |
C++] cpprestSDK(Casablanca) 1. http_listener 에 대해서.... (0) | 2020.07.02 |
C++로 Restful서버 만들기(casablanca) 2. Server Sample Code (6) | 2019.05.28 |
C++로 Restful서버 만들기(casablanca) 1. 셋팅 및 설치 (1) | 2019.05.28 |
댓글