Publish/subscribe over UDP
Posted: Fri Apr 17, 2015 12:51 pm
Hi,
I’m trying to subscribe to RCF::RcfServer( RCF::UdpEndpoint() )
and the client fails in createSubscription with ‘Exception type: class std::bad_cast. Exception message: "Bad dynamic_cast!".’
Using RCF::enableLogging(RCF::LogToDebugWindow(), 2) I’ve found the problem starts in UdpServerTransport::cycle as ‘Socket error. Call to OS function select() failed. OS: 10038 - An operation was attempted on something that is not a socket’.
The main client-to-server calls work fine though.
I just got the original TCP based Publish/subscribe sample from the manual and changed all the enpoints to UDP.
Could you please tell me whether the Publish/subscribe functionality is supported over UDP.
Are there any related tricks?
Unfortunately I might miss something important at this point.
Thank you in advance,
Konstantin
I’m trying to subscribe to RCF::RcfServer( RCF::UdpEndpoint() )
and the client fails in createSubscription with ‘Exception type: class std::bad_cast. Exception message: "Bad dynamic_cast!".’
Using RCF::enableLogging(RCF::LogToDebugWindow(), 2) I’ve found the problem starts in UdpServerTransport::cycle as ‘Socket error. Call to OS function select() failed. OS: 10038 - An operation was attempted on something that is not a socket’.
The main client-to-server calls work fine though.
I just got the original TCP based Publish/subscribe sample from the manual and changed all the enpoints to UDP.
Could you please tell me whether the Publish/subscribe functionality is supported over UDP.
Are there any related tricks?
Unfortunately I might miss something important at this point.
Thank you in advance,
Konstantin