Remove some code temporary code using the multicast socket options that was
accidentally left in.
This commit is contained in:
parent
bc9222adf1
commit
5fcfc25f5c
@ -19,7 +19,6 @@ public:
|
||||
|
||||
// Join the multicast group.
|
||||
socket_.set_option(asio::ipv4::multicast::add_membership(multicast_addr));
|
||||
socket_.set_option(asio::ipv4::multicast::drop_membership(multicast_addr));
|
||||
|
||||
socket_.async_recvfrom(data_, max_length, sender_endpoint_,
|
||||
boost::bind(&receiver::handle_recvfrom, this, asio::arg::error,
|
||||
|
@ -16,9 +16,6 @@ public:
|
||||
timer_(d),
|
||||
message_count_(0)
|
||||
{
|
||||
// Set the time-to-live for outgoing multicast packets.
|
||||
socket_.set_option(asio::ipv4::multicast::time_to_live(2));
|
||||
|
||||
std::ostringstream os;
|
||||
os << "Message " << message_count_++;
|
||||
message_ = os.str();
|
||||
|
Loading…
Reference in New Issue
Block a user