|
Boost Users : |
From: Lewis, Ambrose J. (AMBROSE.J.LEWIS_at_[hidden])
Date: 2008-08-12 06:53:55
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net