boost-asio
read specific size of data from boost asio udp socket
I want to read specific number of bytes from udp socket. In tcp socket I can usesocket.read where I can specify the amount of data to receive. I don\'t find similar function for UDP socke开发者_运维问[详细]
2023-03-25 19:12 分类:问答How do I map Windows System error codes to boost::error_condition?
In the code below I would like to replace Windows WinSock error WSAEINTR=10004 with a generic boost system error code, but how do I map the code I found in the debugger, with the generic enums?[详细]
2023-03-25 18:51 分类:问答Can I share boost::asio::tcp::socket object between 2 threads that perform read and write
I have two threads, one sending and another r开发者_运维技巧eceiving data via TCP socket. I use boost::asio::read() and boost::asio::write() for reading and writing. My question is do I have to guard[详细]
2023-03-25 16:46 分类:问答Apple Push notification service c++ / boost does not connect
I\'m currently working on a server-side push notification service with Apple push notification. I\'m working with boost asio.[详细]
2023-03-25 03:34 分类:问答boost::function in template baseclass error
I have the following class structure with an intermediate class which inherits from a template: #include <boost/function.hpp>[详细]
2023-03-24 18:23 分类:问答boost::asio socket async_* strand
How to perform async_* operations on socket through the strand? I\'ve looked at Timer.5 (Boost/Asio examples), but they only show how to invoke user\'s handler. When I async_write to the socket in mul[详细]
2023-03-24 06:50 分类:问答boost async_read_until problem with custom match function won't complile in GCC
The following code compiles and works with visual studio 2010 but won\'t complile under GCC: Declarations:[详细]
2023-03-23 06:34 分类:问答Payload split over two TCP packets when using Boost ASIO, when it fits within the MTU
I have a problem with a boost::asio::ip::tcp::iostream. I am trying to send about 20 raw bytes. The problem is that this 20 byte payload is split into two TCP packets with 1 byte, then 19 bytes. Simpl[详细]
2023-03-23 02:14 分类:问答LNK2019 when including asio headers, solution generated with cmake
I am trying to port a big project from gcc (Linux) to msvc (windows), using cmake and boost libraries.[详细]
2023-03-22 20:28 分类:问答Fast data (image) transfer server client using Boost Asio
I\'m relatively new to network programming and have some questions on best practices for continuous fast data (image) transfer between a client and a server using Boost Asio. Important point, we canno[详细]
2023-03-22 12:58 分类:问答