OopenFAST connectivity to ssm

Imported from previous forum

Hi all,
I’ve been trying to resolve the problem for some time but came up short.
So there is a task to connect to the FIX\FAST gate based on the source specific udp multicast. We chose openfast 1.1.2 lib. to investigate within a proof of concept.
For the testing purposes and as a starting point we took consumer application sources(in the package). Env: Win7-64, jdk 1.7
Connection fails with “Cannot assign requested address: Cannot bind” exception permanently in createSocket method on creating MulticastSocket bound to the specified multicast group ip and port provided by the stock exchange (MICEX).
Interesting but the source code provided by the stock exc. on C connects to the appropriate UDP port and receives data:
socketaddr_in.sin_family = AF_INET;
socketaddr_in.sin_port = htons( atoi(PORT));
socketaddr_in.sin_addr.s_addr = htonl(INADDR_ANY);
bind(…);

ip_mreq_source.imr_multiaddr.s_addr = GROUP IP;
ip_mreq_source.imr_sourceaddr.s_addr = INTERFACE IP;
ip_mreq_source.imr_interface.s_addr = INADDR_ANY;
setsockopt(…, IPPROTO_IP, IP_ADD_SOURCE_MEMBERSHIP, …);

I understand - it most likely refers to the Multicast sockets in Java. However appreciate any ideas.
BTW provider recommends to use “igmp v3 source specific join request”.

Thanks

Hi Dmitry,

This type of question is probably better suited for the OpenFAST mailing list: http://www.openfast.org/mail-lists.html. Can you repost to the openfast-user e-mail list?

For general FAST specification questions, the FAST Protocol Forum is the place to post. For specific FAST implementation questions, post on the implementations forums or mailing lists.

Thanks,
Jake

Hi all,
I’ve been trying to resolve the problem for some time but came up short.
So there is a task to connect to the FIX\FAST gate based on the source specific udp multicast. We chose openfast 1.1.2 lib. to investigate within a proof of concept.
For the testing purposes and as a starting point we took consumer application sources(in the package). Env: Win7-64, jdk 1.7
Connection fails with “Cannot assign requested address: Cannot bind” exception permanently in createSocket method on creating MulticastSocket bound to the specified multicast group ip and port provided by the stock exchange (MICEX).
Interesting but the source code provided by the stock exc. on C connects to the appropriate UDP port and receives data:
socketaddr_in.sin_family = AF_INET;
socketaddr_in.sin_port = htons( atoi(PORT));
socketaddr_in.sin_addr.s_addr = htonl(INADDR_ANY);
bind(…);

ip_mreq_source.imr_multiaddr.s_addr = GROUP IP;
ip_mreq_source.imr_sourceaddr.s_addr = INTERFACE IP;
ip_mreq_source.imr_interface.s_addr = INADDR_ANY;
setsockopt(…, IPPROTO_IP, IP_ADD_SOURCE_MEMBERSHIP, …);

I understand - it most likely refers to the Multicast sockets in Java. However appreciate any ideas.
BTW provider recommends to use “igmp v3 source specific join request”.

Thanks