Hi All: I'm trying (somewhat unsuccessfully) to use a udp::socket in my program. My system is running Ubuntu 7.04 and boost 1.35 After a while, the program dies with the following message: terminate called after throwing an instance of 'std::bad_alloc' The line that causes the problem is: (*m_socket).send_to(boost::asio::buffer(xmlData.m_xmlString), m_remoteEndpoint); I think that the client program isn't keeping up and my send buffer is overflowing. Is there any way to confirm this thought? Could I use something like a select statement to see if this UDP socket is ready for writing? Please note that I set the size of the send buffer to 8192: m_socket->set_option(udp::socket::send_buffer_size(8192)); Thanks for the help and/or suggestions! THANXS amb
participants (1)
-
Lewis, Ambrose J.