I\'m curre开发者_高级运维ntly using the ICU library to handle Unicode data, and am trying to send a UnicodeString over a socket. Currently looking at the example using a basic time server:
I have application.so on Aix 5.3 and gcc 4.2.4. Application.so uses boost:asio. There is example.c which does dlopen and dlclose for application.so. However, when example.c exits - I get a core dump.
async_write() is forbidden to be called concurrently from different threads. It sends data by chunks using async_write_some and such chunks can be interleaved. So it is up to the user to take care of
I\'m reading from a boost::asio::ip::udp::socket like this: using boost::asio::ip::udp; // ... char recv_buf[128];
I\'m using Boost.Asio as a simple socket library. When I open a socket, I create a thread which keeps reading on that socket, and returns when the socket has been closed, or some other errors occured
I use boost::asio::buffer to send a message using void Send(const std::string& messageData) { socket.async_write(boost::asio::buffer(messageData), ...);
I\'m working on a low-latency high-throughput, minimalistic HTTP server (almost real-time message switch).
I\'m experimenting with Boost.Asio strand for a serve开发者_开发知识库r I\'m writing and wanted to clarify a few things.
EDIT: SOLVED! I added BOOST_ALL_NO_LIB to my Conditional defines and added the errorcode.cpp from /libs/system/src/ folder to my Project.
At the moment I\'m filling an std::vector with all of my data and then sending it with async_write.All of the packets I send have a 2 byte header and this tells receiver how much further to read (if a