boost-asio
Basic question about socket programming using Boost ASIO
I am relatively new to socket programming. I am currently trying examples provided with boost::asio. I have a general question a开发者_高级运维bout sockets.[详细]
2023-03-16 02:02 分类:问答boost::asio::async_read bind compilation error
I can\'t figure out why I get this error : /usr/local/include/boost/asio/impl/read.hpp: In member function ‘void boost::asio::detail::read_op<AsyncReadStream, boost::asio::mutable_buffers_1, Comp[详细]
2023-03-15 21:09 分类:问答boost::asio reading troubles
I\'m new to network programming in general, so please bear with me. I couldn\'t find anything about this in the bo开发者_JS百科ost documentation. When using asio::async_read, an end of file error is r[详细]
2023-03-15 20:41 分类:问答Can I have blocking I/O within an asynchronous io_machine?
I have a server that\'s currently using asynchronous IO to (1) accept data from cin and send that input across a UNIX socket and (2) accept data on a UNIX socket, parse that data, and send back a resp[详细]
2023-03-15 20:30 分类:问答what values can I pass to message_flags attribute in stream_socket_service::receive
I am trying to use socket::receive in boost asio to receive data over network. I want it to blo开发者_JS百科ck until certain size of data is available. For that it seems that I will have to set messag[详细]
2023-03-15 06:33 分类:问答Using boost::asio::ip::tcp::socket::cancel() and socket::close()
If I use close and not cancel, there are some problems. The close function can close the socket, and any outstanding asynchronous operations is stopped by returning boost::asio::error::operation_abor[详细]
2023-03-15 00:13 分类:问答Does boost::asio::io_service preserve the order of handlers?
Does boost::asio::io_service guarantee that handlers are ca开发者_JS百科lled in the same order that they are given via post()?I can\'t find anything saying this in the documentation.Assume that calls[详细]
2023-03-14 13:33 分类:问答What's the meaning of boost::asio::placeholders::bytes_transferred
What is the meaning of boost::asio::placeholders::bytes_transferred in async_read_until()? In the callback function it returns smaller value, than streambuf.size(). streambuf was clear before the call[详细]
2023-03-14 07:30 分类:问答how to handle control-c in a boost tcp/udp server
How do I handle the control-C event or stop my boost::asio server. I have a tcp & udp combined server and would like to be able to exit cleanly when I press ctrl-c. I get a first chance exception[详细]
2023-03-13 18:32 分类:问答Is boost::io_service::post thread safe?
Is it thread safe to post new handlers from within a handler? I.e. Can threads that called the io_service::run() post new Handlers to the sam开发者_如何学Goe io_service?[详细]
2023-03-13 14:14 分类:问答