
I previously used ASIO from Boost 1.49 to send out multicast UDP messages up to 64K bytes in size without a problem. Now with ASIO from Boost 1.55 I can't seem to send out a multicast UDP message greater than 1500 bytes. I get this error: Code=1784 Category=system Message=The supplied user buffer is not valid for the requested operation I've looked at the code between Boost 1.49 and 1.55, (basic_datagram_socket.hpp, datagram_socket_services.hpp, win_iocp_socket_service_base.hpp and ipp) and very little has changed. Am I missing something that changed between the two? I'm using Windows and Microsoft Visual Studio 2010 for both 1.49 and 1.55. Hopefully someone has an idea of where to look. Thanks. --- Aaron Wright

I'm not 100% sure why, but this was caused by linking with winsock32. As soon as I stopped linking with that old library, the multicasting worked like a charm. --- Aaron Wright From: Aaron_Wright@selinc.com To: boost-users@lists.boost.org Date: 05/13/2014 05:56 AM Subject: [Boost-users] [ASIO] Multicast Regression? Sent by: "Boost-users" <boost-users-bounces@lists.boost.org> I previously used ASIO from Boost 1.49 to send out multicast UDP messages up to 64K bytes in size without a problem. Now with ASIO from Boost 1.55 I can't seem to send out a multicast UDP message greater than 1500 bytes. I get this error: Code=1784 Category=system Message=The supplied user buffer is not valid for the requested operation I've looked at the code between Boost 1.49 and 1.55, (basic_datagram_socket.hpp, datagram_socket_services.hpp, win_iocp_socket_service_base.hpp and ipp) and very little has changed. Am I missing something that changed between the two? I'm using Windows and Microsoft Visual Studio 2010 for both 1.49 and 1.55. Hopefully someone has an idea of where to look. Thanks. --- Aaron Wright _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

Out of curiosity: What do your link settings look like now? Philipp On 13.05.2014 12:31, Aaron_Wright@selinc.com wrote:
I'm not 100% sure why, but this was caused by linking with winsock32. As soon as I stopped linking with that old library, the multicasting worked like a charm.
---
Aaron Wright
From: Aaron_Wright@selinc.com To: boost-users@lists.boost.org Date: 05/13/2014 05:56 AM Subject: [Boost-users] [ASIO] Multicast Regression? Sent by: "Boost-users" <boost-users-bounces@lists.boost.org>
I previously used ASIO from Boost 1.49 to send out multicast UDP messages up to 64K bytes in size without a problem. Now with ASIO from Boost 1.55 I
can't seem to send out a multicast UDP message greater than 1500 bytes. I get this error:
Code=1784 Category=system Message=The supplied user buffer is not valid for the requested operation
I've looked at the code between Boost 1.49 and 1.55, (basic_datagram_socket.hpp, datagram_socket_services.hpp, win_iocp_socket_service_base.hpp and ipp) and very little has changed. Am I missing something that changed between the two?
I'm using Windows and Microsoft Visual Studio 2010 for both 1.49 and 1.55.
Hopefully someone has an idea of where to look. Thanks. ---
Aaron Wright _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

I simply eliminated the winsock32 library. It was a holdover from a dependency that used to use it, but didn't anymore. --- Aaron Wright From: Philipp Münzel <mailing-lists@philippmuenzel.de> To: boost-users@lists.boost.org Date: 05/14/2014 07:57 AM Subject: Re: [Boost-users] [ASIO] [Solved] Multicast Regression? Sent by: "Boost-users" <boost-users-bounces@lists.boost.org> Out of curiosity: What do your link settings look like now? Philipp On 13.05.2014 12:31, Aaron_Wright@selinc.com wrote:
I'm not 100% sure why, but this was caused by linking with winsock32. As soon as I stopped linking with that old library, the multicasting worked like a charm.
---
Aaron Wright
From: Aaron_Wright@selinc.com To: boost-users@lists.boost.org Date: 05/13/2014 05:56 AM Subject: [Boost-users] [ASIO] Multicast Regression? Sent by: "Boost-users" <boost-users-bounces@lists.boost.org>
I previously used ASIO from Boost 1.49 to send out multicast UDP messages up to 64K bytes in size without a problem. Now with ASIO from Boost 1.55 I
can't seem to send out a multicast UDP message greater than 1500 bytes. I get this error:
Code=1784 Category=system Message=The supplied user buffer is not valid for the requested operation
I've looked at the code between Boost 1.49 and 1.55, (basic_datagram_socket.hpp, datagram_socket_services.hpp, win_iocp_socket_service_base.hpp and ipp) and very little has changed. Am I missing something that changed between the two?
I'm using Windows and Microsoft Visual Studio 2010 for both 1.49 and 1.55.
Hopefully someone has an idea of where to look. Thanks. ---
Aaron Wright _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Aaron_Wright@selinc.com
-
Philipp Münzel