Opened 11 years ago

Closed 10 years ago

#6125 closed Bugs (invalid)

set_option error

Reported by: trajor@… Owned by: chris_kohlhoff
Milestone: To Be Determined Component: asio
Version: Boost 1.47.0 Severity: Problem
Keywords: Cc:

Description

Hi,

I'm trying to set up elementary udp connection, here is a part of code:

boost::asio::ip::multicast::join_group joinRequest(
			boost::asio::ip::address_v4::from_string("239.192.112.3"),	
boost::asio::ip::address_v4::from_string("172.20.200.42")
);

socket_.set_option(joinRequest);//ERROR

The error is: "set_option: The requested address is not valid in its context 2.112.3"

It seems that first part of my multicast-address(239.19) was cutted out.

My production environment is Windows, VC10

Could you please tell me how can I fix this issue?

Thanks,

Change History (2)

comment:1 by trajor@…, 11 years ago

Also, I can set up connection via winsock and get data, but in some reasons I cannot do that with boost.

Thanks in advance,

comment:2 by chris_kohlhoff, 10 years ago

Resolution: invalid
Status: newclosed

I do not know why the error is corrupted, and cannot reproduce this. Please reopen this ticket if you can supply a small, complete test case showing this issue.

The error itself means that the second IP address ("172.20.200.42") probably does not identify a valid interface on that system.

Note: See TracTickets for help on using tickets.