Created Unassigned: rawptr_buffer::can_read() behavior [8]
When the current position on a rawptr_buffer is at EOF, can_read() returns false. This behavior is not consistent with that of the other types of buffers.In particular, it prevents the seekpos method...
View ArticleNew Post: streambuf and stringstreambuf
Can you give me an example of how I can use raw pointer (I am assuming you are talking about char* or wchar_t*?) for get_line()? in std::streambuf has a method str() which can be used to reset the...
View ArticleNew Post: streambuf and stringstreambuf
Hi c2c, We were actually incorrect in informing you about doing the data.collection().resize(0). You can't make modifications to the underlying container in the container_buffer. The intent of the...
View ArticleNew Post: streambuf and stringstreambuf
I strongly recommend a method called clear() (that does something like ZeroMemory). It sounds useless but it's useful for reusing the stream. Thanks again for great support.
View ArticleNew Post: Long response interval cause exception or hang
Hi c2c, Ok, I took a deeper look into this. I didn't try reproducing with Lightstreamer, because I might have to get permission to use it with the license at Microsoft. I did however create a simple...
View ArticleCommented Unassigned: WHY USE unescape_string here? [7]
``` C++std::string web::json::details::_String::as_utf8_string() const{ if(is_wide()){ return utf16_to_utf8(unescape_string<utf16char>(m_wstring.get()));} else{ return...
View ArticleNew Post: Long response interval cause exception or hang
Glad to here the problem is solved. We figured 30 seconds was a good default, but obviously there are scenarios where it needs to be extended.
View ArticleNew Post: streambuf and stringstreambuf
Yes, making that second loop alternative that I proposed actually work seems worthwhile. If we consider something like this:stringstreambuf data; while (condition) { auto read =...
View ArticleCommented Unassigned: WHY USE unescape_string here? [7]
``` C++std::string web::json::details::_String::as_utf8_string() const{ if(is_wide()){ return utf16_to_utf8(unescape_string<utf16char>(m_wstring.get()));} else{ return...
View ArticleCommented Unassigned: WHY USE unescape_string here? [7]
``` C++std::string web::json::details::_String::as_utf8_string() const{ if(is_wide()){ return utf16_to_utf8(unescape_string<utf16char>(m_wstring.get()));} else{ return...
View ArticleCommented Unassigned: Missing web:: namespace in JSON documentation [6]
The current version of [JSON](https://casablanca.codeplex.com/wikipage?title=JSON&referringTitle=Documentation) chapter of the documentation does not explicitly explain all the JSON features live...
View ArticleCommented Issue: Linux: "chunked" detection logic doesn't work in all cases [2]
in read_headers (http_client.cpp):ctx->m_needChunked = boost::iequals(value, U("chunked"));Above statement will not always work because some site somehow inserts an additional space before the...
View ArticleCommented Issue: include/pch/stdafx.h [3]
Shouldn't the precopiled header file be placed under the "src" folder and not under the "include" folder? This seems to be a safer strategy for PCH files as to not accidentally deploy or include them...
View ArticleCommented Issue: Exception: when request() is called with GET and body_send [4]
This is more of error checking than anything else. I inadvertently used methods::GET with body_data. I really wanted to use methods::POST.test:```////this one will generate exception//http_client...
View ArticleCommented Unassigned: Use buried headers in subfolder [5]
Requesting users to #include <json.h> is not a good idea as the header name is far from being unique.Please, use of buried headers and deploy all headers in dedicated subfolder, i.e. #include...
View ArticleCommented Unassigned: WHY USE unescape_string here? [7]
``` C++std::string web::json::details::_String::as_utf8_string() const{ if(is_wide()){ return utf16_to_utf8(unescape_string<utf16char>(m_wstring.get()));} else{ return...
View ArticleCommented Unassigned: rawptr_buffer::can_read() behavior [8]
When the current position on a rawptr_buffer is at EOF, can_read() returns false. This behavior is not consistent with that of the other types of buffers.In particular, it prevents the seekpos method...
View ArticleNew Post: Connected Standby and Casablanca
I would like to know if anyone has tested on real machine Connected Standby with Casablanca? I worry that whatever we do will prevent OS from entering connected standby in #2 (or even #1?). I am no...
View ArticleNew Comment on "Setup and Build on Linux"
to step #9: are tests from Release directory supposed to fail? Starting test case pplxtask_tests:TestTaskOperators... pplxtask_tests.cpp:546: error: Failure in TestTaskOperators: Unhandled exception:...
View Article