New Post: How to await create_task from c#
How to use async/await approach from C# to await a C++ call that returns concurrency::task<>, without using IAsyncAction and IAsyncResult WinRT interfaces (i..e over Win 7/server). Thanks
View ArticleNew Post: How to await create_task from c#
Hi, You can start from our tutorial or if you only need ppl tasks you can get examples from the ppl task parallelism. Thanks
View ArticleNew Post: How to await create_task from c#
actually this is not what i am looking for, I am looking to have http_client rest sdk being called from within C# method using async/await 5.0 feature. Is this doable outside WinRT, because in WinRT it...
View ArticleNew Post: How do you handle persistent connections
Does Casablanca knows how to handle persistent connection pools, i.e. creating a new http_client instance to the same IP and port will reuse the previously underlying constructed tcp socket or it will...
View ArticleNew Post: pplx task in linux
Hi G, Our license is Apache 2.0 so you definitely can use pplx task's without Casablanca if you want. The headers and sources for PPLX are located under Release\include\pplx and Release\src\pplx...
View ArticleUpdated Wiki: Home
Welcome! The C++ REST SDK (codename "Casablanca") is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help...
View ArticleUpdated Wiki: Home
Welcome! The C++ REST SDK (codename "Casablanca") is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help...
View ArticleCreated Unassigned: Mismatched new/delete in streams.h [112]
The memory buffers in Release/include/cpprest/streams.h deallocate with delete instead of delete[]. The result (at least on Linux) is memory corruption.Here's the fix patch:diff --git...
View ArticleUpdated Wiki: Home
Welcome! The C++ REST SDK (codename "Casablanca") is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help...
View ArticleEdited Unassigned: run_tests.sh clobbers LD_LIBRARY_PATH [64]
On the current Git master, the `Release/tests/Common/TestRunner/run_tests.sh` script sets `LD_LIBRARY_PATH` to the current directory (`.`), but wipes out any other parts of the path that were already...
View ArticleCommented Unassigned: run_tests.sh clobbers LD_LIBRARY_PATH [64]
On the current Git master, the `Release/tests/Common/TestRunner/run_tests.sh` script sets `LD_LIBRARY_PATH` to the current directory (`.`), but wipes out any other parts of the path that were already...
View ArticleCommented Unassigned: Mismatched new/delete in streams.h [112]
The memory buffers in Release/include/cpprest/streams.h deallocate with delete instead of delete[]. The result (at least on Linux) is memory corruption.Here's the fix patch:diff --git...
View ArticleNew Post: Multiple listeners dispatch - How to handle URL variables?
There are several examples on how to create multiple listeners to handle e.g. /users and /posts separately. Is it possible to create separate listeners for: /users /users/<id as int> ? The first...
View ArticleNew Post: Bad uri format : exception handling
Hi Steve, I'm on Linux. I see you have an http_linux_server class but I don't know if I can workaround the problem with it. I duplicate my post on an issue :) Thanks, Steve
View ArticleCreated Unassigned: Bad uri format : exception handling [113]
Handle internal (casablanca) exception in blackjack server sample is not possible.If, I hit this url : [http://localhost:34568/blackjack/dealer?a=|](http://localhost:34568/blackjack/dealer?a=|), the...
View ArticleNew Post: Getting an exception when trying to close file stream on win8/RT
I'm working on a basic downloader based on the http client tutorial. I've tried to match it as closely as possible, with the exception of the open_ostream call which takes a...
View ArticleNew Post: Multiple listeners dispatch - How to handle URL variables?
Hi DesktopMan Yes, we do support the above scenario. The request will be routed to the listener listening on the best matching path. You can refer to testcase uri_routing at...
View ArticleNew Post: Multiple listeners dispatch - How to handle URL variables?
Hi and thanks for the reply, The first listener would be: http_listener listener1(web::http::uri_builder(m_uri).append_path(U("users")).to_uri()); what would the url for the second case be? Would:...
View ArticleNew Post: Getting an exception when trying to close file stream on win8/RT
Hi TylerBit This is a bug in our WinRT file streams. We are aware of this issue and we will fix it for our upcoming release (2.1), in the next couple of weeks. Thanks Kavya
View Article